[][src]Struct vec_collections::TotalVecSet

pub struct TotalVecSet<A: Array> { /* fields omitted */ }

A VecSet with an additional flag so it can support negation.

This way it is possible to represent e.g. the set of all u64 except 1.

Implementations

impl<T, A: Array<Item = T>> TotalVecSet<A>[src]

pub fn is_empty(&self) -> bool[src]

pub fn is_all(&self) -> bool[src]

pub fn constant(value: bool) -> Self[src]

pub fn empty() -> Self[src]

pub fn all() -> Self[src]

pub fn shrink_to_fit(&mut self)[src]

impl<T: Ord, A: Array<Item = T>> TotalVecSet<A>[src]

pub fn contains(&self, value: &T) -> bool[src]

pub fn insert(&mut self, that: T)[src]

pub fn is_superset(&self, that: &Self) -> bool[src]

pub fn is_subset(&self, that: &Self) -> bool[src]

pub fn is_disjoint(&self, that: &Self) -> bool[src]

impl<T: Ord + Clone, A: Array<Item = T>> TotalVecSet<A>[src]

pub fn remove(&mut self, that: &T)[src]

Trait Implementations

impl<T: Ord + Clone, A: Array<Item = T>, '_> BitAnd<&'_ TotalVecSet<A>> for &'_ TotalVecSet<A>[src]

type Output = TotalVecSet<A>

The resulting type after applying the & operator.

impl<T: Ord, A: Array<Item = T>> BitAndAssign<TotalVecSet<A>> for TotalVecSet<A>[src]

impl<T: Ord + Clone, A: Array<Item = T>, '_> BitOr<&'_ TotalVecSet<A>> for &'_ TotalVecSet<A>[src]

type Output = TotalVecSet<A>

The resulting type after applying the | operator.

impl<T: Ord, A: Array<Item = T>> BitOrAssign<TotalVecSet<A>> for TotalVecSet<A>[src]

impl<T: Ord + Clone, A: Array<Item = T>, '_> BitXor<&'_ TotalVecSet<A>> for &'_ TotalVecSet<A>[src]

type Output = TotalVecSet<A>

The resulting type after applying the ^ operator.

impl<T: Ord, A: Array<Item = T>> BitXorAssign<TotalVecSet<A>> for TotalVecSet<A>[src]

impl<T: Clone, A: Array<Item = T>> Clone for TotalVecSet<A>[src]

impl<T: Debug, A: Array<Item = T>> Debug for TotalVecSet<A>[src]

impl<T: Eq, A: Array<Item = T>> Eq for TotalVecSet<A>[src]

impl<T, A: Array<Item = T>> From<VecSet<A>> for TotalVecSet<A>[src]

impl<T, A: Array<Item = T>> From<bool> for TotalVecSet<A>[src]

impl<T: Hash, A: Array<Item = T>> Hash for TotalVecSet<A>[src]

impl<T: Ord + Clone, A: Array<Item = T>, '_> Not for &'_ TotalVecSet<A>[src]

type Output = TotalVecSet<A>

The resulting type after applying the ! operator.

impl<T: Ord, A: Array<Item = T>> Not for TotalVecSet<A>[src]

type Output = TotalVecSet<A>

The resulting type after applying the ! operator.

impl<T: PartialEq, A: Array<Item = T>> PartialEq<TotalVecSet<A>> for TotalVecSet<A>[src]

impl<T: Ord + Clone, A: Array<Item = T>, '_> Sub<&'_ TotalVecSet<A>> for &'_ TotalVecSet<A>[src]

type Output = TotalVecSet<A>

The resulting type after applying the - operator.

impl<T: Ord, A: Array<Item = T>> SubAssign<TotalVecSet<A>> for TotalVecSet<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for TotalVecSet<A> where
    A: RefUnwindSafe,
    <A as Array>::Item: RefUnwindSafe

impl<A> Send for TotalVecSet<A> where
    <A as Array>::Item: Send

impl<A> Sync for TotalVecSet<A> where
    A: Sync

impl<A> Unpin for TotalVecSet<A> where
    A: Unpin

impl<A> UnwindSafe for TotalVecSet<A> where
    A: UnwindSafe,
    <A as Array>::Item: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.