pub struct VecSet<T> { /* private fields */ }Implementations§
Source§impl<T: Eq> VecSet<T>
impl<T: Eq> VecSet<T>
pub fn new() -> Self
pub fn with_capacity(size: usize) -> Self
pub fn from_vec(v: Vec<T>) -> Self
pub fn into_vec(self) -> Vec<T>
pub fn capacity(&self) -> usize
pub fn reserve(&mut self, additional: usize)
pub fn shrink_to_fit(&mut self)
pub fn iter(&self) -> Iter<'_, T>
pub fn iter_mut(&mut self) -> IterMut<'_, T>
pub fn into_iter(self) -> IntoIter<T>
pub fn contains(&self, x: &T) -> bool
pub fn insert(&mut self, x: T) -> bool
pub fn remove(&mut self, x: &T) -> bool
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for VecSet<T>
impl<T> RefUnwindSafe for VecSet<T>where
T: RefUnwindSafe,
impl<T> Send for VecSet<T>where
T: Send,
impl<T> Sync for VecSet<T>where
T: Sync,
impl<T> Unpin for VecSet<T>where
T: Unpin,
impl<T> UnwindSafe for VecSet<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