Enum ic_certified_map::HashTree[][src]

pub enum HashTree<'a> {
    Empty,
    Fork(Box<(HashTree<'a>, HashTree<'a>)>),
    Labeled(&'a [u8]Box<HashTree<'a>>),
    Leaf(Cow<'a, [u8]>),
    Pruned(Hash),
}
Expand description

HashTree as defined in the interfaces spec. https://sdk.dfinity.org/docs/interface-spec/index.html#_certificate

Variants

Empty
Fork(Box<(HashTree<'a>, HashTree<'a>)>)

Tuple Fields of Fork

0: Box<(HashTree<'a>, HashTree<'a>)>
Labeled(&'a [u8]Box<HashTree<'a>>)

Tuple Fields of Labeled

0: &'a [u8]1: Box<HashTree<'a>>
Leaf(Cow<'a, [u8]>)

Tuple Fields of Leaf

0: Cow<'a, [u8]>
Pruned(Hash)

Tuple Fields of Pruned

0: Hash

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.