Struct array_section::TryFromArraySectionError
source · 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
.
Trait Implementations§
source§impl<T: Clone, const N: usize> Clone for TryFromArraySectionError<T, N>
impl<T: Clone, const N: usize> Clone for TryFromArraySectionError<T, N>
source§fn clone(&self) -> TryFromArraySectionError<T, N>
fn clone(&self) -> TryFromArraySectionError<T, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T, const N: usize> Display for TryFromArraySectionError<T, N>
impl<T, const N: usize> Display for TryFromArraySectionError<T, N>
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.
impl<T: Copy, const N: usize> Copy for TryFromArraySectionError<T, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for TryFromArraySectionError<T, N>where
T: Freeze,
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