pub trait LayoutStrategy:
'static
+ Send
+ Sync {
// Required method
fn new_writer(
&self,
ctx: &ArrayContext,
dtype: &DType,
) -> VortexResult<Box<dyn LayoutWriter>>;
}Expand description
A trait for creating new layout writers given a DType.
Required Methods§
fn new_writer( &self, ctx: &ArrayContext, dtype: &DType, ) -> VortexResult<Box<dyn LayoutWriter>>
Implementors§
impl LayoutStrategy for ChunkedLayoutStrategy
impl LayoutStrategy for FlatLayout
Implement the LayoutStrategy trait for the FlatLayout for easy use.