pub struct BitmapBuilder { /* private fields */ }
Expand description
Used to build bitmaps bool-by-bool in sequential order.
Implementations§
Source§impl BitmapBuilder
impl BitmapBuilder
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn with_capacity(bits: usize) -> Self
pub fn reserve(&mut self, additional: usize)
pub fn push(&mut self, x: bool)
Sourcepub unsafe fn push_unchecked(&mut self, x: bool)
pub unsafe fn push_unchecked(&mut self, x: bool)
§Safety
self.len() < self.capacity() must hold.
pub fn into_mut(self) -> MutableBitmap
pub fn freeze(self) -> Bitmap
Trait Implementations§
Source§impl Clone for BitmapBuilder
impl Clone for BitmapBuilder
Source§fn clone(&self) -> BitmapBuilder
fn clone(&self) -> BitmapBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for BitmapBuilder
impl Default for BitmapBuilder
Source§fn default() -> BitmapBuilder
fn default() -> BitmapBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BitmapBuilder
impl RefUnwindSafe for BitmapBuilder
impl Send for BitmapBuilder
impl Sync for BitmapBuilder
impl Unpin for BitmapBuilder
impl UnwindSafe for BitmapBuilder
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§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
)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