Trait penumbra_tct::internal::interface::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>