pub struct Validity<'a> { /* private fields */ }Expand description
Public Arrow-shaped validity bitmap: one LSB-first bit per row, where one means valid and zero means null.
Implementations§
Source§impl<'a> Validity<'a>
impl<'a> Validity<'a>
Sourcepub fn from_bitmap(bits: &'a [u8], bit_len: usize) -> Result<Self>
pub fn from_bitmap(bits: &'a [u8], bit_len: usize) -> Result<Self>
Borrow bits as a validity bitmap of length bit_len rows.
bits.len() must be at least ceil(bit_len / 8). Bits past
bit_len are ignored by the encoder, so callers do not need to
zero them. bit_len is rejected above
super::MAX_CHUNK_ROWS so the inferred slice length cannot
approach isize::MAX on the FFI fabrication path.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Validity<'a>
impl<'a> RefUnwindSafe for Validity<'a>
impl<'a> Send for Validity<'a>
impl<'a> Sync for Validity<'a>
impl<'a> Unpin for Validity<'a>
impl<'a> UnsafeUnpin for Validity<'a>
impl<'a> UnwindSafe for Validity<'a>
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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