pub enum SmallVec<T, const N: usize> {
LocalBuf(LocalVec<T, N>),
RemoteBuf(Vec<T>),
}Expand description
A vector supporting small buffer optimization
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> Freeze for SmallVec<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for SmallVec<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for SmallVec<T, N>where
T: Send,
impl<T, const N: usize> Sync for SmallVec<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for SmallVec<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for SmallVec<T, N>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