LayoutSpec

Trait LayoutSpec 

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

Required Methods§

Source

fn id(&self) -> LayoutId

Source

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

Implementors§