Trait bitsetium::BitSubset [−][src]
pub trait BitSubset<Rhs = Self> {
fn is_subset_of(&self, rhs: &Rhs) -> bool;
}
Expand description
Tests any of the following equivalent properties:
- one bit-set is subset of another.
- all bits that are set in one bit-set are set in another.
self - rhs
is empty.
Required methods
fn is_subset_of(&self, rhs: &Rhs) -> bool
fn is_subset_of(&self, rhs: &Rhs) -> bool
Returns true if self
is subset of rhs
.