Skip to main content

BitSet

Trait BitSet 

Source
pub trait BitSet {
Show 22 methods // Required methods fn bit_len(&self) -> usize; fn bit_init(&mut self, value: bool) -> &mut Self; fn bit_test(&self, bit: usize) -> bool; fn bit_set(&mut self, bit: usize) -> &mut Self; fn bit_reset(&mut self, bit: usize) -> &mut Self; fn bit_flip(&mut self, bit: usize) -> &mut Self; fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self; fn bit_all(&self) -> bool; fn bit_any(&self) -> bool; fn bit_eq(&self, rhs: &Self) -> bool; fn bit_disjoint(&self, rhs: &Self) -> bool; fn bit_subset(&self, rhs: &Self) -> bool; fn bit_or(&mut self, rhs: &Self) -> &mut Self; fn bit_and(&mut self, rhs: &Self) -> &mut Self; fn bit_andnot(&mut self, rhs: &Self) -> &mut Self; fn bit_xor(&mut self, rhs: &Self) -> &mut Self; fn bit_not(&mut self) -> &mut Self; fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self; fn bit_count(&self) -> usize; // Provided methods fn bit_fmt(&self) -> &BitFmt<Self> { ... } fn bit_none(&self) -> bool { ... } fn bit_superset(&self, rhs: &Self) -> bool { ... }
}
Expand description

The BitSet API.

Required Methods§

Source

fn bit_len(&self) -> usize

Returns total number of bits.

Source

fn bit_init(&mut self, value: bool) -> &mut Self

Initializes all bits.

Source

fn bit_test(&self, bit: usize) -> bool

Returns if the given bit is set.

Source

fn bit_set(&mut self, bit: usize) -> &mut Self

Sets the given bit.

Source

fn bit_reset(&mut self, bit: usize) -> &mut Self

Resets the given bit.

Source

fn bit_flip(&mut self, bit: usize) -> &mut Self

Flips the given bit.

Source

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Conditionally sets or resets the given bit.

Source

fn bit_all(&self) -> bool

Returns if all bits are set.

Source

fn bit_any(&self) -> bool

Returns if any bits are set.

Source

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

Returns if the two bitsets are equal.

Source

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

Returns if the two bitsets have no bits in common.

Source

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

Returns if self is a subset of rhs.

Source

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Bitwise OR.

Source

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Bitwise AND.

Source

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Bitwise AND after NOT of rhs.

Source

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Bitwise XOR.

Source

fn bit_not(&mut self) -> &mut Self

Bitwise NOT.

Source

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Bitwise combine with MASK.

Source

fn bit_count(&self) -> usize

Counts the number of set bits.

Provided Methods§

Source

fn bit_fmt(&self) -> &BitFmt<Self>

Format the bits.

Source

fn bit_none(&self) -> bool

Returns if none of the bits are set.

Source

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

Returns if self is a superset of rhs.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BitSet for [[u8; 16]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [[u8; 32]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [[u16; 8]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [[u16; 16]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [[u32; 4]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [[u32; 8]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [[u64; 2]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [[u64; 4]]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [u8]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [u16]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [u32]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [u64]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for [u128]

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for u8

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

fn bit_none(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for u16

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

fn bit_none(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for u32

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

fn bit_none(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for u64

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

fn bit_none(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl BitSet for u128

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

fn bit_none(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl<T> BitSet for Box<[T]>
where [T]: BitSet,

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

fn bit_none(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Source§

impl<T> BitSet for Vec<T>
where [T]: BitSet,

Source§

fn bit_len(&self) -> usize

Source§

fn bit_init(&mut self, value: bool) -> &mut Self

Source§

fn bit_test(&self, bit: usize) -> bool

Source§

fn bit_set(&mut self, bit: usize) -> &mut Self

Source§

fn bit_reset(&mut self, bit: usize) -> &mut Self

Source§

fn bit_flip(&mut self, bit: usize) -> &mut Self

Source§

fn bit_cond(&mut self, bit: usize, value: bool) -> &mut Self

Source§

fn bit_all(&self) -> bool

Source§

fn bit_any(&self) -> bool

Source§

fn bit_none(&self) -> bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn bit_or(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_and(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_andnot(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_xor(&mut self, rhs: &Self) -> &mut Self

Source§

fn bit_not(&mut self) -> &mut Self

Source§

fn bit_mask(&mut self, rhs: &Self, mask: &Self) -> &mut Self

Source§

fn bit_count(&self) -> usize

Implementors§