penumbra_tct::internal::interface

Trait GetPosition

Source
pub trait GetPosition {
    // Required method
    fn position(&self) -> Option<u64>;
}
Available on crate feature internal only.
Expand description

Get the position of the next insertion into the tree.

Required Methods§

Source

fn position(&self) -> Option<u64>

The position of the next insertion into the tree.

Returns None if the tree is full.

Implementors§

Source§

impl GetPosition for penumbra_tct::internal::complete::Item

Source§

impl GetPosition for penumbra_tct::internal::frontier::Item

Source§

impl<Child: Focus + GetPosition> GetPosition for penumbra_tct::internal::frontier::Node<Child>

Source§

impl<Child: Clone> GetPosition for penumbra_tct::internal::complete::Node<Child>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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