vortex_array::encoding

Trait ArrayEncoding

Source
pub trait ArrayEncoding:
    'static
    + Sync
    + Send
    + Debug {
    // Required methods
    fn id(&self) -> EncodingId;
    fn canonicalize(&self, array: Array) -> VortexResult<Canonical>;
    fn with_dyn(
        &self,
        array: &Array,
        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 canonicalize(&self, array: Array) -> VortexResult<Canonical>

Flatten the given array.

Source

fn with_dyn( &self, array: &Array, 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 ArrayEncoding + '_

Source§

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

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

impl PartialEq for dyn ArrayEncoding + '_

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 ArrayEncoding + '_

Implementors§