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<VC: PushIndexAs<u64>> Container for Bools<VC>
impl<VC: PushIndexAs<u64>> Container for Bools<VC>
Source§type Borrowed<'a> = Bools<<VC as Container>::Borrowed<'a>, &'a u64>
where
VC: 'a
type Borrowed<'a> = Bools<<VC as Container>::Borrowed<'a>, &'a u64> where VC: 'a
The type of a borrowed container. Read more
Source§fn borrow<'a>(&'a self) -> Self::Borrowed<'a>
fn borrow<'a>(&'a self) -> Self::Borrowed<'a>
Converts a reference to the type to a borrowed variant.
Source§fn reborrow<'b, 'a: 'b>(thing: Self::Borrowed<'a>) -> Self::Borrowed<'b>where
VC: 'a,
fn reborrow<'b, 'a: 'b>(thing: Self::Borrowed<'a>) -> Self::Borrowed<'b>where
VC: 'a,
Reborrows the borrowed type to a shorter lifetime. See
Columnar::reborrow
for details.Source§fn reborrow_ref<'b, 'a: 'b>(thing: Self::Ref<'a>) -> Self::Ref<'b>where
Self: 'a,
fn reborrow_ref<'b, 'a: 'b>(thing: Self::Ref<'a>) -> Self::Ref<'b>where
Self: 'a,
Reborrows the borrowed type to a shorter lifetime. See
Columnar::reborrow
for details.fn reserve_for<'a, I>(&mut self, selves: I)
Source§fn with_capacity_for<'a, I>(selves: I) -> Self
fn with_capacity_for<'a, I>(selves: I) -> Self
Allocates an empty container that can be extended by
selves
without reallocation. Read moreSource§impl<VC: Len + IndexAs<u64>, WC: CopyAs<u64>> Index for &Bools<VC, WC>
impl<VC: Len + IndexAs<u64>, WC: CopyAs<u64>> Index for &Bools<VC, WC>
Source§impl<VC: Len + IndexAs<u64>, WC: CopyAs<u64>> Index for Bools<VC, WC>
impl<VC: Len + IndexAs<u64>, WC: CopyAs<u64>> Index for Bools<VC, WC>
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