pub struct Bitmask {
pub len: usize,
/* private fields */
}Expand description
One bit per row, recording which entries of a numeric ColumnData hold a
value rather than a blank.
A set bit means the value at that index is real; a clear bit means the cell is empty and the underlying slot holds a placeholder. Keeping this separate is what lets a numeric column stay unboxed and still tell a blank cell apart from a zero.
Read-only from outside the crate – the mutators are crate-private, since changing a mask’s length independently of the column it belongs to would desync the two.
Fields§
§len: usizeHow many bits are in use, which is the row count of the column this mask belongs to. Not the capacity of the backing bytes.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bitmask
impl<'de> Deserialize<'de> for Bitmask
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
Auto Trait Implementations§
impl Freeze for Bitmask
impl RefUnwindSafe for Bitmask
impl Send for Bitmask
impl Sync for Bitmask
impl Unpin for Bitmask
impl UnsafeUnpin for Bitmask
impl UnwindSafe for Bitmask
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