pub struct AllocError<T> {
pub value: T,
pub cause: AllocErrorKind,
}
Expand description
Error type for failure to insert a new value.
Fields§
§value: T
The value that could not be inserted.
cause: AllocErrorKind
The reason for the failure to insert.
Trait Implementations§
Source§impl<T> From<AllocError<T>> for Error
impl<T> From<AllocError<T>> for Error
Source§fn from(insert_err: AllocError<T>) -> Error
fn from(insert_err: AllocError<T>) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for AllocError<T>where
T: Freeze,
impl<T> RefUnwindSafe for AllocError<T>where
T: RefUnwindSafe,
impl<T> Send for AllocError<T>where
T: Send,
impl<T> Sync for AllocError<T>where
T: Sync,
impl<T> Unpin for AllocError<T>where
T: Unpin,
impl<T> UnwindSafe for AllocError<T>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> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more