Trait penumbra_tct::internal::height::Height

source ·
pub trait Height {
    type Height: Path;
}
Available on crate feature internal only.
Expand description

Trait identifying the statically-known height of a given tree element.

This is used to differentiate the hashes at each level of the tree.

Required Associated Types§

source

type Height: Path

The height of this type above the leaves of the tree.

Implementors§

source§

impl Height for penumbra_tct::internal::complete::Item

§

type Height = Zero

source§

impl Height for penumbra_tct::internal::frontier::Item

§

type Height = Zero

source§

impl<Child: Focus> Height for penumbra_tct::internal::frontier::Node<Child>

§

type Height = Succ<<Child as Height>::Height>

source§

impl<Child: Height + Clone> Height for penumbra_tct::internal::complete::Node<Child>

§

type Height = Succ<<Child as Height>::Height>

source§

impl<Item: Focus + Clone> Height for penumbra_tct::internal::frontier::Tier<Item>
where Item::Complete: Clone,

§

type Height = <Node<Node<Node<Node<Node<Node<Node<Node<Leaf<Item>>>>>>>>> as Height>::Height

source§

impl<Item: Focus + Clone> Height for penumbra_tct::internal::frontier::Top<Item>
where Item::Complete: Clone,

§

type Height = <Node<Node<Node<Node<Node<Node<Node<Node<Leaf<Item>>>>>>>>> as Height>::Height

source§

impl<Item: GetHash + Height + Clone> Height for penumbra_tct::internal::complete::Tier<Item>

§

type Height = <Node<Node<Node<Node<Node<Node<Node<Node<Leaf<Item>>>>>>>>> as Height>::Height

source§

impl<Item: GetHash + Height + Clone> Height for penumbra_tct::internal::complete::Top<Item>

§

type Height = <Node<Node<Node<Node<Node<Node<Node<Node<Leaf<Item>>>>>>>>> as Height>::Height

source§

impl<Item: Height> Height for penumbra_tct::internal::complete::Leaf<Item>

§

type Height = <Item as Height>::Height

source§

impl<Item: Height> Height for penumbra_tct::internal::frontier::Leaf<Item>

§

type Height = <Item as Height>::Height

source§

impl<T: Height> Height for Insert<T>

§

type Height = <T as Height>::Height