pub trait ValidityBitmap: BitmapRef {
// Provided methods
fn is_null(&self, index: usize) -> Option<bool> { ... }
unsafe fn is_null_unchecked(&self, index: usize) -> bool { ... }
fn null_count(&self) -> usize { ... }
fn is_valid(&self, index: usize) -> Option<bool> { ... }
unsafe fn is_valid_unchecked(&self, index: usize) -> bool { ... }
fn valid_count(&self) -> usize { ... }
fn any_null(&self) -> bool { ... }
fn all_null(&self) -> bool { ... }
fn any_valid(&self) -> bool { ... }
fn all_valid(&self) -> bool { ... }
}
Expand description
A validity bitmap storing the validity information (null-ness) of elements in a collection in a bitmap.
Provided Methods§
Sourcefn is_null(&self, index: usize) -> Option<bool>
fn is_null(&self, index: usize) -> Option<bool>
Returns true
if the element at position index
is null.
Sourceunsafe fn is_null_unchecked(&self, index: usize) -> bool
unsafe fn is_null_unchecked(&self, index: usize) -> bool
Returns true
if the element at position index
is null, without
performing any bounds checking.
§Safety
- The
index
must be in bounds.
Calling this method with an out-of-bounds index is undefined behavior.
Sourcefn null_count(&self) -> usize
fn null_count(&self) -> usize
Returns the number of null elements.
Sourcefn is_valid(&self, index: usize) -> Option<bool>
fn is_valid(&self, index: usize) -> Option<bool>
Returns true
if the element at position index
is valid.
Sourceunsafe fn is_valid_unchecked(&self, index: usize) -> bool
unsafe fn is_valid_unchecked(&self, index: usize) -> bool
Returns true
if the element at position index
is valid, without
performing any bounds checking.
§Safety
- The
index
must be in bounds.
Calling this method with an out-of-bounds index is undefined behavior.
Sourcefn valid_count(&self) -> usize
fn valid_count(&self) -> usize
Returns the number of valid elements.