LoadCell

Trait LoadCell 

Source
pub trait LoadCell<'a>: Sized {
    // Required method
    fn load_from_cell(cell: &'a DynCell) -> Result<Self, Error>;
}
Expand description

A data structure that can be deserialized from the full cell.

Required Methods§

Source

fn load_from_cell(cell: &'a DynCell) -> Result<Self, Error>

Tries to load itself from cell.

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.

Implementations on Foreign Types§

Source§

impl<'a, T: LoadCell<'a>> LoadCell<'a> for Box<T>

Source§

fn load_from_cell(cell: &'a DynCell) -> Result<Self, Error>

Source§

impl<'a, T: LoadCell<'a>> LoadCell<'a> for Rc<T>

Source§

fn load_from_cell(cell: &'a DynCell) -> Result<Self, Error>

Source§

impl<'a, T: LoadCell<'a>> LoadCell<'a> for Arc<T>

Source§

fn load_from_cell(cell: &'a DynCell) -> Result<Self, Error>

Implementors§

Source§

impl<'a> LoadCell<'a> for MerkleProof

Source§

impl<'a> LoadCell<'a> for MerkleProofRef<'a>

Source§

impl<'a> LoadCell<'a> for MerkleUpdate