VecSet

Struct VecSet 

Source
pub struct VecSet<E: Element> { /* private fields */ }

Implementations§

Source§

impl<E: Element> VecSet<E>

Source

pub fn new() -> Self

Source

pub fn iter(&self) -> Iter<'_, E>

Trait Implementations§

Source§

impl<'a, E: Element> BitAnd for &'a VecSet<E>

Source§

type Output = VecSet<E>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &'a VecSet<E>) -> Self::Output

Performs the & operation. Read more
Source§

impl<'a, E: Element> BitAndAssign<&'a E> for VecSet<E>

Source§

fn bitand_assign(&mut self, rhs: &E)

Performs the &= operation. Read more
Source§

impl<'a, E: Element> BitAndAssign<&'a VecSet<E>> for VecSet<E>

Source§

fn bitand_assign(&mut self, rhs: &VecSet<E>)

Performs the &= operation. Read more
Source§

impl<'a, E: Element> BitOr<&'a VecSet<E>> for &VecSet<E>

Source§

type Output = VecSet<E>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &'a VecSet<E>) -> VecSet<E>

Performs the | operation. Read more
Source§

impl<'a, E: Element> BitOrAssign<&'a E> for VecSet<E>

Source§

fn bitor_assign(&mut self, rhs: &E)

Performs the |= operation. Read more
Source§

impl<'a, E: Element> BitOrAssign<&'a VecSet<E>> for VecSet<E>

Source§

fn bitor_assign(&mut self, rhs: &VecSet<E>)

Performs the |= operation. Read more
Source§

impl<'a, E: Element> BitXor<&'a VecSet<E>> for &VecSet<E>

Source§

type Output = VecSet<E>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &'a VecSet<E>) -> VecSet<E>

Performs the ^ operation. Read more
Source§

impl<'a, E: Element> BitXorAssign<&'a E> for VecSet<E>

Source§

fn bitxor_assign(&mut self, rhs: &E)

Performs the ^= operation. Read more
Source§

impl<'a, E: Element> BitXorAssign<&'a VecSet<E>> for VecSet<E>

Source§

fn bitxor_assign(&mut self, rhs: &VecSet<E>)

Performs the ^= operation. Read more
Source§

impl<E: Element> BitXorAssign for VecSet<E>

Source§

fn bitxor_assign(&mut self, rhs: VecSet<E>)

Performs the ^= operation. Read more
Source§

impl<E: Clone + Element> Clone for VecSet<E>

Source§

fn clone(&self) -> VecSet<E>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<E: Debug + Element> Debug for VecSet<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Element> Default for VecSet<E>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<E: Element, const N: usize> From<[E; N]> for VecSet<E>

Source§

fn from(arr: [E; N]) -> Self

Converts to this type from the input type.
Source§

impl<E: Element> FromIterator<E> for VecSet<E>

Source§

fn from_iter<I: IntoIterator<Item = E>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl<'a, E: Element> IntoIterator for &'a VecSet<E>

Source§

type Item = &'a E

The type of the elements being iterated over.
Source§

type IntoIter = Iter<'a, E>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a, E: Element + 'a> Set<'a> for VecSet<E>

Source§

type Element = E

Source§

type Iter = Iter<'a, E>

Source§

type Difference = Difference<'a, E>

Source§

type Intersection = Intersection<'a, E>

Source§

type SymmetricDifference = SymmetricDifference<'a, E>

Source§

type Union = Union<'a, E>

Source§

fn new() -> Self

Source§

fn capacity(&self) -> usize

Source§

fn clear(&mut self)

Source§

fn contains(&self, value: &E) -> bool

Source§

fn difference(&'a self, other: &'a Self) -> Self::Difference

Returns an iterator of elements representing the difference between this set and another, i.e., the elements that are in self but not in other.
Source§

fn difference_ref(&'a self, other: &'a Self) -> Self::Difference

Source§

fn insert(&mut self, value: E)

Source§

fn intersection(&'a self, other: &'a Self) -> Self::Intersection

Source§

fn is_empty(&self) -> bool

Source§

fn iter(&'a self) -> Self::Iter

Source§

fn len(&self) -> usize

Source§

fn remove(&mut self, value: &E)

Source§

fn retain<F>(&mut self, f: F)
where F: FnMut(&E) -> bool,

Source§

fn symmetric_difference(&'a self, other: &'a Self) -> Self::SymmetricDifference

Source§

fn symmetric_difference_update(&mut self, rhs: &Self)

Source§

fn union(&'a self, other: &'a Self) -> Self::Union

Source§

fn union_update(&mut self, rhs: &Self)

Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn intersection_update(&mut self, rhs: &Self)

Source§

fn intersection_item_update(&mut self, value: &Self::Element)

Source§

fn symmetric_difference_item_update(&mut self, value: &Self::Element)

Source§

fn union_item_update(&mut self, value: &Self::Element)

Source§

fn bitand_assign_set(&mut self, rhs: &Self)

Source§

fn bitand_assign_item(&mut self, rhs: &Self::Element)

Source§

fn bitor_assign_set(&mut self, rhs: &Self)

Source§

fn bitor_assign_item(&mut self, rhs: &Self::Element)

Source§

fn bitxor_assign_set(&mut self, rhs: &Self)

Source§

fn bitxor_assign_item(&mut self, rhs: &Self::Element)

Source§

fn sub_assign_set(&mut self, rhs: &Self)

Source§

fn sub_assign_item(&mut self, rhs: &Self::Element)

Source§

impl<'a, E: Element> Sub<&'a VecSet<E>> for &VecSet<E>

Source§

type Output = VecSet<E>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'a VecSet<E>) -> VecSet<E>

Performs the - operation. Read more
Source§

impl<'a, E: Element> SubAssign<&'a E> for VecSet<E>

Source§

fn sub_assign(&mut self, rhs: &E)

Performs the -= operation. Read more
Source§

impl<'a, E: Element> SubAssign<&'a VecSet<E>> for VecSet<E>

Source§

fn sub_assign(&mut self, rhs: &VecSet<E>)

Performs the -= operation. Read more

Auto Trait Implementations§

§

impl<E> Freeze for VecSet<E>

§

impl<E> RefUnwindSafe for VecSet<E>
where E: RefUnwindSafe,

§

impl<E> Send for VecSet<E>
where E: Send,

§

impl<E> Sync for VecSet<E>
where E: Sync,

§

impl<E> Unpin for VecSet<E>
where E: Unpin,

§

impl<E> UnwindSafe for VecSet<E>
where E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V