Trait idlset::AndNot

source ·
pub trait AndNot<RHS = Self> {
    type Output;

    fn andnot(self, rhs: RHS) -> Self::Output;
}
Expand description

Bit trait representing the equivalent of a & (!b). This allows set operations such as “The set A does not contain any element of set B”.

Required Associated Types§

The type of set implementation to return.

Required Methods§

Perform an AndNot (exclude) operation between two sets. This returns a new set containing the results. The set on the right is the candidate set to exclude from the set of the left. As an example this would behave as [1,2,3].andnot([2]) == [1, 3].

Implementors§