Trait ShapeToStore

Source
pub trait ShapeToStore {
    // Required methods
    fn encode(
        &self,
        shape_store: &mut Vec<ColumnValue>,
        cache: &mut ColumnCacheWriter,
    );
    fn decode(store: &mut Vec<usize>, cache: &mut ColumnCacheReader) -> Self;
}
Expand description

Encode/Decode a Shape to the column cache

Required Methods§

Source

fn encode( &self, shape_store: &mut Vec<ColumnValue>, cache: &mut ColumnCacheWriter, )

Encode the shape

Source

fn decode(store: &mut Vec<usize>, cache: &mut ColumnCacheReader) -> Self

Decode the shape

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.

Implementations on Foreign Types§

Source§

impl ShapeToStore for Shape

Source§

fn encode( &self, shape_store: &mut Vec<ColumnValue>, cache: &mut ColumnCacheWriter, )

Source§

fn decode(store: &mut Vec<usize>, cache: &mut ColumnCacheReader) -> Self

Implementors§