Struct rustc_borrowck::BitSet [−][src]
pub(crate) struct BitSet<T> {
domain_size: usize,
words: Vec<u64, Global>,
marker: PhantomData<T>,
}Expand description
A fixed-size bitset type with a dense representation.
NOTE: Use GrowableBitSet if you need support for resizing after creation.
T is an index type, typically a newtyped usize wrapper, but it can also
just be usize.
All operations that involve an element will panic if the element is equal to or greater than the domain size. All operations that involve two bitsets will panic if the bitsets have differing domain sizes.
Fields
domain_size: usizewords: Vec<u64, Global>marker: PhantomData<T>Auto Trait Implementations
impl<T> RefUnwindSafe for BitSet<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for BitSet<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes