pub struct Bools<VC = Vec<u64>, WC = u64> {
pub values: VC,
pub last_word: WC,
pub last_bits: WC,
}
Expand description
A store for maintaining Vec<bool>
.
Fields§
§values: VC
The bundles of bits that form complete u64
values.
last_word: WC
The work-in-progress bits that are not yet complete.
last_bits: WC
The number of set bits in bits.last()
.
Trait Implementations§
source§impl<'de, VC, WC> Deserialize<'de> for Bools<VC, WC>where
VC: Deserialize<'de>,
WC: Deserialize<'de>,
impl<'de, VC, WC> Deserialize<'de> for Bools<VC, WC>where
VC: Deserialize<'de>,
WC: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<VC: Copy, WC: Copy> Copy for Bools<VC, WC>
impl<VC, WC> StructuralPartialEq for Bools<VC, WC>
Auto Trait Implementations§
impl<VC, WC> Freeze for Bools<VC, WC>
impl<VC, WC> RefUnwindSafe for Bools<VC, WC>where
VC: RefUnwindSafe,
WC: RefUnwindSafe,
impl<VC, WC> Send for Bools<VC, WC>
impl<VC, WC> Sync for Bools<VC, WC>
impl<VC, WC> Unpin for Bools<VC, WC>
impl<VC, WC> UnwindSafe for Bools<VC, WC>where
VC: UnwindSafe,
WC: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)