Trait fuel_merkle::common::Node

source ·
pub trait Node {
    type Key;

    // Required methods
    fn height(&self) -> u32;
    fn leaf_key(&self) -> Self::Key;
    fn is_leaf(&self) -> bool;
    fn is_node(&self) -> bool;

    // Provided method
    fn key_size_in_bits() -> usize { ... }
}

Required Associated Types§

Required Methods§

source

fn height(&self) -> u32

source

fn leaf_key(&self) -> Self::Key

source

fn is_leaf(&self) -> bool

source

fn is_node(&self) -> bool

Provided Methods§

Implementors§

source§

impl Node for Position

§

type Key = [u8; 8]