Struct rustc_index::bit_set::SparseBitSet [−][src]
Expand description
A fixed-size bitset type with a sparse representation and a maximum of
SPARSE_MAX
elements. The elements are stored as a sorted ArrayVec
with
no duplicates.
This type is used by HybridBitSet
; do not use directly.
Fields
domain_size: usize
elems: ArrayVec<T, SPARSE_MAX>
Implementations
Sets self = self | other
and returns true
if self
changed
(i.e., if new bits were added).
Sets self = self - other
and returns true
if self
changed.
(i.e., if any bits were removed).
Sets self = self & other
and return true
if self
changed.
(i.e., if any bits were removed).
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for SparseBitSet<T> where
T: RefUnwindSafe,
impl<T> Send for SparseBitSet<T> where
T: Send,
impl<T> Sync for SparseBitSet<T> where
T: Sync,
impl<T> Unpin for SparseBitSet<T> where
T: Unpin,
impl<T> UnwindSafe for SparseBitSet<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.