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§
Sourcefn encode(
&self,
shape_store: &mut Vec<ColumnValue>,
cache: &mut ColumnCacheWriter,
)
fn encode( &self, shape_store: &mut Vec<ColumnValue>, cache: &mut ColumnCacheWriter, )
Encode the shape
Sourcefn decode(store: &mut Vec<usize>, cache: &mut ColumnCacheReader) -> Self
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.