Enum pinned_init::AllocOrInitError
source · [−]pub enum AllocOrInitError<E> {
Init(E),
Alloc,
}Expand description
Either an allocation error, or an initialization error.
Variants
Init(E)
An error from initializing a value
Alloc
An error from trying to allocate memory
Trait Implementations
sourceimpl<E: Debug> Debug for AllocOrInitError<E>
impl<E: Debug> Debug for AllocOrInitError<E>
sourceimpl<E> From<AllocError> for AllocOrInitError<E>
impl<E> From<AllocError> for AllocOrInitError<E>
sourcefn from(_: AllocError) -> Self
fn from(_: AllocError) -> Self
Converts to this type from the input type.
sourceimpl<E> From<Infallible> for AllocOrInitError<E>
impl<E> From<Infallible> for AllocOrInitError<E>
sourcefn from(e: Infallible) -> Self
fn from(e: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<E> RefUnwindSafe for AllocOrInitError<E>where
E: RefUnwindSafe,
impl<E> Send for AllocOrInitError<E>where
E: Send,
impl<E> Sync for AllocOrInitError<E>where
E: Sync,
impl<E> Unpin for AllocOrInitError<E>where
E: Unpin,
impl<E> UnwindSafe for AllocOrInitError<E>where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more