#[repr(C)]pub struct BitSetPayload {
pub words: ReprCVec<u64>,
}Expand description
The BitSet payload: a growable vector of 64-bit words. Bit i is in word
i / 64 at position i % 64. The field is Drop.
Fields§
§words: ReprCVec<u64>The words. Trailing zero words may be present; equality/hash trim them.
A ReprCVec rather than a std::Vec for ADR-118’s
reason: generated code reads the words pointer and the word count inline
for bs.contains(x), and std::Vec is #[repr(Rust)] — its three words
live inside a private RawVec in no guaranteed order. The container
gives those three words a fixed layout; Vec still does every
allocation.
Auto Trait Implementations§
impl Freeze for BitSetPayload
impl RefUnwindSafe for BitSetPayload
impl Send for BitSetPayload
impl Sync for BitSetPayload
impl Unpin for BitSetPayload
impl UnsafeUnpin for BitSetPayload
impl UnwindSafe for BitSetPayload
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