BlockIO

Trait BlockIO 

Source
pub trait BlockIO {
    type Item;

    // Required methods
    fn from_block(block: &Block) -> Result<Self::Item, CellParseError>;
    fn to_block(&self, order: usize) -> Block;
}
Expand description

Convert between the impl type and Block Usage: convert from parsed block to edit data, then convert back to block to insert back to the HashMap<&str, CELLObject>

Required Associated Types§

Required Methods§

Source

fn from_block(block: &Block) -> Result<Self::Item, CellParseError>

Source

fn to_block(&self, order: usize) -> Block

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.

Implementors§