ValidityVTable

Trait ValidityVTable 

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

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

Required Methods§

Source

fn is_valid(array: &V::Array, index: usize) -> bool

Source

fn all_valid(array: &V::Array) -> bool

Source

fn all_invalid(array: &V::Array) -> bool

Source

fn validity_mask(array: &V::Array) -> Mask

Provided Methods§

Source

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