pub struct TryFromArraySectionError<T, const N: usize> { /* private fields */ }
Expand description
Returned when a TryFrom
conversion of an ArraySection
into an array fails.
Contains the original ArraySection
, which can be retrieved via the array_section
function.
Implementations§
Source§impl<T, const N: usize> TryFromArraySectionError<T, N>
impl<T, const N: usize> TryFromArraySectionError<T, N>
Sourcepub fn array_section(self) -> ArraySection<T, N>
pub fn array_section(self) -> ArraySection<T, N>
Returns the original ArraySection
.
Sourcepub fn backtrace(&self) -> &Backtrace
Available on crate feature std
only.
pub fn backtrace(&self) -> &Backtrace
std
only.Returns a backtrace to where the error was created.
See Backtrace::capture
for more information about how to make it display more information when printed.
Trait Implementations§
Source§impl<T, const N: usize> Display for TryFromArraySectionError<T, N>
impl<T, const N: usize> Display for TryFromArraySectionError<T, N>
Source§impl<T: Debug, const N: usize> Error for TryFromArraySectionError<T, N>
impl<T: Debug, const N: usize> Error for TryFromArraySectionError<T, N>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<T, const N: usize> From<TryFromArraySectionError<T, N>> for ArraySection<T, N>
impl<T, const N: usize> From<TryFromArraySectionError<T, N>> for ArraySection<T, N>
Source§fn from(value: TryFromArraySectionError<T, N>) -> Self
fn from(value: TryFromArraySectionError<T, N>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for TryFromArraySectionError<T, N>
impl<T, const N: usize> RefUnwindSafe for TryFromArraySectionError<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for TryFromArraySectionError<T, N>where
T: Send,
impl<T, const N: usize> Sync for TryFromArraySectionError<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for TryFromArraySectionError<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for TryFromArraySectionError<T, N>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more