penumbra_tct::internal::interface

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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>