Trait bitsetium::BitDisjoint [−][src]
pub trait BitDisjoint<Rhs = Self> {
fn is_disjoint(&self, rhs: &Rhs) -> bool;
}
Expand description
Tests any of the following equivalent properties:
- two bit-sets are disjoint.
- all bits that are set in one bit-set are unset in another and vice versa.
- their intersection is empty.
Required methods
fn is_disjoint(&self, rhs: &Rhs) -> bool
fn is_disjoint(&self, rhs: &Rhs) -> bool
Returns true if self
is disjoint with rhs
.