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: Debug, const N: usize> Error for TryFromArraySectionError<T, N>
Available on crate feature std
only.
impl<T: Debug, const N: usize> Error for TryFromArraySectionError<T, N>
Available on crate feature
std
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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.
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)