pub struct Bitset { /* private fields */ }Expand description
A fixed-capacity set of integers stored as 64-bit words.
Trait Implementations§
Source§impl BitCollection for Bitset
impl BitCollection for Bitset
Source§fn new(init: BitsetInit) -> Self
fn new(init: BitsetInit) -> Self
A bitset of the given capacity and content.
Source§fn intersect_with(&mut self, other: &Bitset)
fn intersect_with(&mut self, other: &Bitset)
Keeps only the elements also in
other.Source§fn union_with(&mut self, other: &Bitset)
fn union_with(&mut self, other: &Bitset)
Adds the elements of
other.Source§fn count_intersect_with(&self, other: &Bitset) -> usize
fn count_intersect_with(&self, other: &Bitset) -> usize
Size of the intersection with
other.Auto Trait Implementations§
impl Freeze for Bitset
impl RefUnwindSafe for Bitset
impl Send for Bitset
impl Sync for Bitset
impl Unpin for Bitset
impl UnsafeUnpin for Bitset
impl UnwindSafe for Bitset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more