Trait penumbra_tct::internal::interface::Forget

source ·
pub trait Forget: Height {
    // Required method
    fn forget(
        &mut self,
        forgotten: Option<Forgotten>,
        index: impl Into<u64>
    ) -> bool;
}
Available on crate feature internal only.
Expand description

Forget about the authentication path to a given index.

Required Methods§

source

fn forget( &mut self, forgotten: Option<Forgotten>, index: impl Into<u64> ) -> bool

Remove the witness for the given index. If a forgotten version is specified, update the path down to the forgotten item to that version plus one.

Returns true if the witness was previously present in the tree.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Forget for Item

source§

impl<Child: Focus + Forget + Clone> Forget for Node<Child>
where Child::Complete: ForgetOwned + Clone,

source§

impl<Item: Focus + Forget + Clone> Forget for Tier<Item>
where Item::Complete: ForgetOwned + Clone,

source§

impl<Item: GetHash + Forget> Forget for Leaf<Item>

source§

impl<T: Height + ForgetOwned> Forget for Insert<T>