pub enum OptBitmapBuilder {
AllTrue {
bit_len: usize,
bit_cap: usize,
},
MayHaveFalse(BitmapBuilder),
}Expand description
A wrapper for BitmapBuilder that does not allocate until the first false is pushed. Less efficient if you know there are false values because it must check if it has allocated for each push.
Variants§
Implementations§
Source§impl OptBitmapBuilder
impl OptBitmapBuilder
pub fn reserve(&mut self, additional: usize)
pub fn extend_constant(&mut self, length: usize, value: bool)
pub fn into_opt_validity(self) -> Option<Bitmap>
pub fn subslice_extend_from_opt_validity( &mut self, bitmap: Option<&Bitmap>, start: usize, length: usize, )
pub fn subslice_extend_each_repeated_from_opt_validity( &mut self, bitmap: Option<&Bitmap>, start: usize, length: usize, repeats: usize, )
Sourcepub unsafe fn gather_extend_from_opt_validity(
&mut self,
bitmap: Option<&Bitmap>,
idxs: &[IdxSize],
)
pub unsafe fn gather_extend_from_opt_validity( &mut self, bitmap: Option<&Bitmap>, idxs: &[IdxSize], )
§Safety
The indices must be in-bounds.
pub fn opt_gather_extend_from_opt_validity( &mut self, bitmap: Option<&Bitmap>, idxs: &[IdxSize], length: usize, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptBitmapBuilder
impl RefUnwindSafe for OptBitmapBuilder
impl Send for OptBitmapBuilder
impl Sync for OptBitmapBuilder
impl Unpin for OptBitmapBuilder
impl UnwindSafe for OptBitmapBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more