pub enum FixedVecNewFromFnError<E: Sized> {
MemoryAllocationFailure,
FnError(E),
}Expand description
Error type returned by FixedVec::new_from_fn().
Variants§
MemoryAllocationFailure
Memory allocation failure.
FnError(E)
The provided initialization function returned the wrapped error.
Trait Implementations§
Source§impl<E: Clone + Sized> Clone for FixedVecNewFromFnError<E>
impl<E: Clone + Sized> Clone for FixedVecNewFromFnError<E>
Source§fn clone(&self) -> FixedVecNewFromFnError<E>
fn clone(&self) -> FixedVecNewFromFnError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<E: Copy + Sized> Copy for FixedVecNewFromFnError<E>
Source§impl<E: Sized> From<FixedVecMemoryAllocationFailure> for FixedVecNewFromFnError<E>
impl<E: Sized> From<FixedVecMemoryAllocationFailure> for FixedVecNewFromFnError<E>
Source§fn from(_value: FixedVecMemoryAllocationFailure) -> Self
fn from(_value: FixedVecMemoryAllocationFailure) -> Self
Converts to this type from the input type.
Source§impl From<FixedVecNewFromFnError<Infallible>> for FixedVecMemoryAllocationFailure
impl From<FixedVecNewFromFnError<Infallible>> for FixedVecMemoryAllocationFailure
Source§fn from(value: FixedVecNewFromFnError<Infallible>) -> Self
fn from(value: FixedVecNewFromFnError<Infallible>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for FixedVecNewFromFnError<E>where
E: Freeze,
impl<E> RefUnwindSafe for FixedVecNewFromFnError<E>where
E: RefUnwindSafe,
impl<E> Send for FixedVecNewFromFnError<E>where
E: Send,
impl<E> Sync for FixedVecNewFromFnError<E>where
E: Sync,
impl<E> Unpin for FixedVecNewFromFnError<E>where
E: Unpin,
impl<E> UnsafeUnpin for FixedVecNewFromFnError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for FixedVecNewFromFnError<E>where
E: 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