Trait tree_hash::TreeHash

source ·
pub trait TreeHash {
    // Required methods
    fn tree_hash_type() -> TreeHashType;
    fn tree_hash_packed_encoding(&self) -> PackedEncoding;
    fn tree_hash_packing_factor() -> usize;
    fn tree_hash_root(&self) -> Hash256;
}

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TreeHash for bool

source§

impl TreeHash for u8

source§

impl TreeHash for u16

source§

impl TreeHash for u32

source§

impl TreeHash for u64

source§

impl TreeHash for usize

source§

impl TreeHash for H160

source§

impl TreeHash for H256

source§

impl TreeHash for U128

source§

impl TreeHash for U256

source§

impl TreeHash for [u8; 4]

source§

impl TreeHash for [u8; 32]

source§

impl TreeHash for [u8; 48]

source§

impl<'a, T> TreeHash for &'a T
where T: TreeHash,

Punch through references.

source§

impl<T: TreeHash> TreeHash for Arc<T>

Implementors§