Trait 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§

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 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 Address

Source§

impl TreeHash for U128

Source§

impl TreeHash for U256

Source§

impl<N: Unsigned + Clone> TreeHash for Bitfield<Fixed<N>>

Source§

impl<N: Unsigned + Clone> TreeHash for Bitfield<Variable<N>>

Source§

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

Punch through references.

Source§

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

Source§

impl<const N: usize> TreeHash for FixedBytes<N>

Source§

impl<const N: usize> TreeHash for [u8; N]

Implementors§