pub struct Bitmap { /* private fields */ }Expand description
Null bitmap for nullable columns.
Implementations§
Source§impl Bitmap
impl Bitmap
Sourcepub fn from_bools(valid: &[bool]) -> Self
pub fn from_bools(valid: &[bool]) -> Self
Create a new bitmap from a boolean slice.
Sourcepub fn new_zeroed(len: usize) -> Self
pub fn new_zeroed(len: usize) -> Self
Create a new bitmap with all bits cleared.
Sourcepub fn null_count(&self) -> usize
pub fn null_count(&self) -> usize
Get the number of null values.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Decode bitmap from bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bitmap
impl<'de> Deserialize<'de> for Bitmap
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 Eq for Bitmap
impl StructuralPartialEq for Bitmap
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnwindSafe for Bitmap
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