MetadataWithRootHash

Trait MetadataWithRootHash 

Source
pub trait MetadataWithRootHash {
    // Required methods
    fn root_hash(&self) -> Bytes32;
    fn root_hash_only(root_hash: Bytes32) -> Self;
}

Required Methods§

Source

fn root_hash(&self) -> Bytes32

Source

fn root_hash_only(root_hash: Bytes32) -> Self

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§