vortex_array::encoding

Trait EncodingVTable

Source
pub trait EncodingVTable:
    'static
    + Sync
    + Send
    + Debug
    + IntoCanonicalVTable
    + MetadataVTable
    + ComputeVTable
    + StatisticsVTable<ArrayData>
    + ValidityVTable<ArrayData>
    + VisitorVTable<ArrayData> {
    // Required methods
    fn id(&self) -> EncodingId;
    fn as_any(&self) -> &dyn Any;
    fn with_dyn(
        &self,
        array: &ArrayData,
        f: &mut dyn for<'b> FnMut(&'b (dyn ArrayTrait + 'b)) -> VortexResult<()>,
    ) -> VortexResult<()>;
}
Expand description

Object-safe encoding trait for an array.

Required Methods§

Source

fn id(&self) -> EncodingId

Source

fn as_any(&self) -> &dyn Any

Source

fn with_dyn( &self, array: &ArrayData, f: &mut dyn for<'b> FnMut(&'b (dyn ArrayTrait + 'b)) -> VortexResult<()>, ) -> VortexResult<()>

Unwrap the provided array into an implementation of ArrayTrait

Trait Implementations§

Source§

impl Hash for dyn EncodingVTable + '_

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for dyn EncodingVTable + '_

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for dyn EncodingVTable + '_

Implementors§