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 its full or compact form.

NOTE the encoding returned here MUST be Decodeable into FullLeaf.

Implementors§

FullLeaf implementation for Compact<H, (DataOrHash<H, Tuple>, ...)>

FullLeaf implementation for Compact<H, (DataOrHash<H, Tuple>, ...)>

FullLeaf implementation for Compact<H, (DataOrHash<H, Tuple>, ...)>

FullLeaf implementation for Compact<H, (DataOrHash<H, Tuple>, ...)>

FullLeaf implementation for Compact<H, (DataOrHash<H, Tuple>, ...)>