Trait vortex_array::variants::VariantsVTable

source ·
pub trait VariantsVTable<Array> {
    // Provided methods
    fn as_null_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn NullArrayTrait> { ... }
    fn as_bool_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn BoolArrayTrait> { ... }
    fn as_primitive_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn PrimitiveArrayTrait> { ... }
    fn as_utf8_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn Utf8ArrayTrait> { ... }
    fn as_binary_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn BinaryArrayTrait> { ... }
    fn as_struct_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn StructArrayTrait> { ... }
    fn as_list_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn ListArrayTrait> { ... }
    fn as_extension_array<'a>(
        &self,
        _array: &'a Array,
    ) -> Option<&'a dyn ExtensionArrayTrait> { ... }
}
Expand description

An Array encoding must declare which DTypes it can be downcast into.

Provided Methods§

source

fn as_null_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn NullArrayTrait>

source

fn as_bool_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn BoolArrayTrait>

source

fn as_primitive_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn PrimitiveArrayTrait>

source

fn as_utf8_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn Utf8ArrayTrait>

source

fn as_binary_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn BinaryArrayTrait>

source

fn as_struct_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn StructArrayTrait>

source

fn as_list_array<'a>(&self, _array: &'a Array) -> Option<&'a dyn ListArrayTrait>

source

fn as_extension_array<'a>( &self, _array: &'a Array, ) -> Option<&'a dyn ExtensionArrayTrait>

Implementors§