pub trait ArrayValidityImpl {
// Required methods
fn _is_valid(&self, index: usize) -> VortexResult<bool>;
fn _all_valid(&self) -> VortexResult<bool>;
fn _all_invalid(&self) -> VortexResult<bool>;
fn _validity_mask(&self) -> VortexResult<Mask>;
// Provided methods
fn _valid_count(&self) -> VortexResult<usize> { ... }
fn _invalid_count(&self) -> VortexResult<usize> { ... }
}
Expand description
Implementation trait for validity functions.
These functions should not be called directly, rather their equivalents on the base
crate::Array
trait should be used.
Required Methods§
Sourcefn _is_valid(&self, index: usize) -> VortexResult<bool>
fn _is_valid(&self, index: usize) -> VortexResult<bool>
Returns whether the index
item is valid.
§Pre-conditions
index
is less than the length of the array.
Sourcefn _all_valid(&self) -> VortexResult<bool>
fn _all_valid(&self) -> VortexResult<bool>
Returns whether the array is all valid.
Sourcefn _all_invalid(&self) -> VortexResult<bool>
fn _all_invalid(&self) -> VortexResult<bool>
Returns whether the array is all invalid.
Sourcefn _validity_mask(&self) -> VortexResult<Mask>
fn _validity_mask(&self) -> VortexResult<Mask>
Returns the canonical validity mask for the array.
§Post-conditions
- The count is less than or equal to the length of the array.
Provided Methods§
Sourcefn _valid_count(&self) -> VortexResult<usize>
fn _valid_count(&self) -> VortexResult<usize>
Returns the number of valid elements in the array.
§Post-conditions
- The count is less than or equal to the length of the array.
Sourcefn _invalid_count(&self) -> VortexResult<usize>
fn _invalid_count(&self) -> VortexResult<usize>
Returns the number of invalid elements in the array.
§Post-conditions
- The count is less than or equal to the length of the array.