pub struct RetainVec<T> {
inner: Vec<T>,
len: usize,
}Expand description
A resizable vector that retains inner elements upon resizing.
Fields§
§inner: Vec<T>§len: usizeImplementations§
Source§impl<T: Clear> RetainVec<T>
impl<T: Clear> RetainVec<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RetainVec<T>
impl<T> RefUnwindSafe for RetainVec<T>where
T: RefUnwindSafe,
impl<T> Send for RetainVec<T>where
T: Send,
impl<T> Sync for RetainVec<T>where
T: Sync,
impl<T> Unpin for RetainVec<T>where
T: Unpin,
impl<T> UnsafeUnpin for RetainVec<T>
impl<T> UnwindSafe for RetainVec<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