pub struct VecSet<T> { /* private fields */ }Implementations§
Source§impl<T> VecSet<T>
impl<T> VecSet<T>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn capacity(&self) -> usize
pub fn iter(&self) -> Iter<'_, T> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn drain(&mut self) -> Drain<'_, T> ⓘ
pub fn retain<F>(&mut self, f: F)
pub fn clear(&mut self)
pub fn reserve(&mut self, additional: usize)
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
pub fn shrink_to_fit(&mut self)
pub fn shrink_to(&mut self, min_capacity: usize)
Source§impl<T> VecSet<T>where
T: Eq,
impl<T> VecSet<T>where
T: Eq,
pub fn difference<'a>(&'a self, other: &'a Self) -> Difference<'a, T> ⓘ
pub fn symmetric_difference<'a>( &'a self, other: &'a VecSet<T>, ) -> SymmetricDifference<'a, T> ⓘ
pub fn intersection<'a>(&'a self, other: &'a Self) -> Intersection<'a, T> ⓘ
pub fn union<'a>(&'a self, other: &'a Self) -> Union<'a, T> ⓘ
pub fn contains<Q>(&self, value: &Q) -> bool
pub fn get<Q>(&self, value: &Q) -> Option<&T>
pub fn is_disjoint(&self, other: &Self) -> bool
pub fn is_subset(&self, other: &Self) -> bool
pub fn is_superset(&self, other: &Self) -> bool
pub fn insert(&mut self, value: T) -> bool
pub fn replace(&mut self, value: T) -> Option<T>
pub fn remove<Q>(&mut self, value: &Q) -> bool
Trait Implementations§
Source§impl<'a, T> Extend<&'a T> for VecSet<T>
impl<'a, T> Extend<&'a T> for VecSet<T>
Source§fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T> Extend<T> for VecSet<T>where
T: Eq,
impl<T> Extend<T> for VecSet<T>where
T: Eq,
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T> FromIterator<T> for VecSet<T>where
T: Eq,
impl<T> FromIterator<T> for VecSet<T>where
T: Eq,
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<'a, T> IntoIterator for &'a VecSet<T>
impl<'a, T> IntoIterator for &'a VecSet<T>
Source§impl<T> IntoIterator for VecSet<T>
impl<T> IntoIterator for VecSet<T>
impl<T> Eq for VecSet<T>where
T: Eq,
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