pub enum InsertError<T> {
    IndexOutOfBounds(T),
    OutOfCapacity(T),
}Expand description
Error type for Vec::insert_within_capacity.
Variants§
IndexOutOfBounds(T)
The value could not be inserted because the index is out of bounds.
OutOfCapacity(T)
The value could not be inserted because the vector is out of capacity.
Trait Implementations§
Source§impl<T> Debug for InsertError<T>
 
impl<T> Debug for InsertError<T>
Source§impl<T> From<InsertError<T>> for Error
 
impl<T> From<InsertError<T>> for Error
Source§fn from(_: InsertError<T>) -> Error
 
fn from(_: InsertError<T>) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for InsertError<T>where
    T: Freeze,
impl<T> RefUnwindSafe for InsertError<T>where
    T: RefUnwindSafe,
impl<T> Send for InsertError<T>where
    T: Send,
impl<T> Sync for InsertError<T>where
    T: Sync,
impl<T> Unpin for InsertError<T>where
    T: Unpin,
impl<T> UnwindSafe for InsertError<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