CellContext

Trait CellContext 

Source
pub trait CellContext {
    // Required methods
    fn finalize_cell(&mut self, cell: CellParts<'_>) -> Result<Cell, Error>;
    fn load_cell(&mut self, cell: Cell, mode: LoadMode) -> Result<Cell, Error>;
    fn load_dyn_cell<'a>(
        &mut self,
        cell: &'a DynCell,
        mode: LoadMode,
    ) -> Result<&'a DynCell, Error>;
}
Expand description

Gas accounting and resolcing exotic cells.

Required Methods§

Source

fn finalize_cell(&mut self, cell: CellParts<'_>) -> Result<Cell, Error>

Builds a new cell from cell parts.

Source

fn load_cell(&mut self, cell: Cell, mode: LoadMode) -> Result<Cell, Error>

Resolve an owned cell.

Source

fn load_dyn_cell<'a>( &mut self, cell: &'a DynCell, mode: LoadMode, ) -> Result<&'a DynCell, Error>

Resolve a cell reference.

Implementors§