Trait BitSubset

Source
pub trait BitSubset<Rhs = Self> {
    // Required method
    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§

Source

fn is_subset_of(&self, rhs: &Rhs) -> bool

Returns true if self is subset of rhs.

Implementations on Foreign Types§

Source§

impl BitSubset for bool

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl BitSubset for u8

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl BitSubset for u16

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl BitSubset for u32

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl BitSubset for u64

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl BitSubset for u128

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl BitSubset<Complement<bool>> for bool

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl BitSubset<Complement<u8>> for u8

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl BitSubset<Complement<u16>> for u16

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl BitSubset<Complement<u32>> for u32

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl BitSubset<Complement<u64>> for u64

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl BitSubset<Complement<u128>> for u128

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl<T, U> BitSubset<U> for Option<T>
where T: BitSubset<U>,

Source§

fn is_subset_of(&self, rhs: &U) -> bool

Source§

impl<T, U> BitSubset<U> for &T
where T: BitSubset<U>,

Source§

fn is_subset_of(&self, rhs: &U) -> bool

Source§

impl<T, U> BitSubset<U> for &mut T
where T: BitSubset<U>,

Source§

fn is_subset_of(&self, rhs: &U) -> bool

Source§

impl<T, U> BitSubset<U> for Box<T>
where T: BitSubset<U>,

Source§

fn is_subset_of(&self, rhs: &U) -> bool

Source§

impl<const N: usize> BitSubset for [u8; N]

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl<const N: usize> BitSubset for [u16; N]

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl<const N: usize> BitSubset for [u32; N]

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl<const N: usize> BitSubset for [u64; N]

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl<const N: usize> BitSubset for [u128; N]

Source§

fn is_subset_of(&self, rhs: &Self) -> bool

Source§

impl<const N: usize> BitSubset<Complement<[u8; N]>> for [u8; N]

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl<const N: usize> BitSubset<Complement<[u16; N]>> for [u16; N]

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl<const N: usize> BitSubset<Complement<[u32; N]>> for [u32; N]

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl<const N: usize> BitSubset<Complement<[u64; N]>> for [u64; N]

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Source§

impl<const N: usize> BitSubset<Complement<[u128; N]>> for [u128; N]

Source§

fn is_subset_of(&self, rhs: &Complement<Self>) -> bool

Implementors§