Trait ValidityVTable

Source
pub trait ValidityVTable<V: VTable> {
    // Required methods
    fn is_valid(array: &V::Array, index: usize) -> VortexResult<bool>;
    fn all_valid(array: &V::Array) -> VortexResult<bool>;
    fn all_invalid(array: &V::Array) -> VortexResult<bool>;
    fn validity_mask(array: &V::Array) -> VortexResult<Mask>;

    // Provided methods
    fn valid_count(array: &V::Array) -> VortexResult<usize> { ... }
    fn invalid_count(array: &V::Array) -> VortexResult<usize> { ... }
}

Required Methods§

Provided Methods§

Source

fn valid_count(array: &V::Array) -> 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.
Source

fn invalid_count(array: &V::Array) -> 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§