Trait pallet_mmr_primitives::FullLeaf[][src]

pub trait FullLeaf: Clone + PartialEq + Debug {
    fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F, compact: bool) -> R;
}
Expand description

A full leaf content stored in the offchain-db.

Required methods

Encode the leaf either in it’s full or compact form.

NOTE the encoding returned here MUST be Decodeable into FullLeaf.

Implementors