pub struct EVec<T> { /* private fields */ }Expand description
A vector that is guaranteed to be empty.
Naturally, the following operations are impossible with EVec:
appendinsertpushremove
And many others have been elided for being pointless (like drain and sort).
Implementations§
Trait Implementations§
Source§impl<T> IntoIterator for EVec<T>
impl<T> IntoIterator for EVec<T>
Source§impl<T: Ord> Ord for EVec<T>
impl<T: Ord> Ord for EVec<T>
Source§impl<T: PartialOrd> PartialOrd for EVec<T>
impl<T: PartialOrd> PartialOrd for EVec<T>
impl<T: Eq> Eq for EVec<T>
impl<T> StructuralPartialEq for EVec<T>
Auto Trait Implementations§
impl<T> Freeze for EVec<T>
impl<T> RefUnwindSafe for EVec<T>where
T: RefUnwindSafe,
impl<T> Send for EVec<T>where
T: Send,
impl<T> Sync for EVec<T>where
T: Sync,
impl<T> Unpin for EVec<T>where
T: Unpin,
impl<T> UnwindSafe for EVec<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