Trait vortex_serde::layouts::reader::context::LayoutSpec

source ·
pub trait LayoutSpec:
    Debug
    + Send
    + Sync {
    // Required methods
    fn id(&self) -> LayoutId;
    fn layout(
        &self,
        fb_bytes: Bytes,
        fb_loc: usize,
        scan: Scan,
        layout_reader: LayoutDeserializer,
        message_cache: RelativeLayoutCache,
    ) -> Box<dyn Layout>;
}

Required Methods§

source

fn id(&self) -> LayoutId

source

fn layout( &self, fb_bytes: Bytes, fb_loc: usize, scan: Scan, layout_reader: LayoutDeserializer, message_cache: RelativeLayoutCache, ) -> Box<dyn Layout>

Implementors§