pub struct Insertion<T> {
pub index: usize,
pub element: T,
}
Expand description
A value that is pending insertion
Fields§
§index: usize
Where in the original vector to insert this value.
This is equivelant to the index argument in Vec::insert
element: T
The value to be inserted
Implementations§
Trait Implementations§
Source§impl<T> FromIterator<Insertion<T>> for InsertionSet<T>
impl<T> FromIterator<Insertion<T>> for InsertionSet<T>
Auto Trait Implementations§
impl<T> Freeze for Insertion<T>where
T: Freeze,
impl<T> RefUnwindSafe for Insertion<T>where
T: RefUnwindSafe,
impl<T> Send for Insertion<T>where
T: Send,
impl<T> Sync for Insertion<T>where
T: Sync,
impl<T> Unpin for Insertion<T>where
T: Unpin,
impl<T> UnwindSafe for Insertion<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