Skip to main content

NoteRetention

Trait NoteRetention 

Source
pub trait NoteRetention<NoteRef> {
    // Required methods
    fn should_retain_sapling(&self, note: &ReceivedNote<NoteRef, Note>) -> bool;
    fn should_retain_orchard(&self, note: &ReceivedNote<NoteRef, Note>) -> bool;
    fn should_retain_ironwood(&self, note: &ReceivedNote<NoteRef, Note>) -> bool;
}
Expand description

A predicate that can be used to choose whether or not a particular note is retained in note selection.

Required Methods§

Source

fn should_retain_sapling(&self, note: &ReceivedNote<NoteRef, Note>) -> bool

Returns whether the specified Sapling note should be retained.

Source

fn should_retain_orchard(&self, note: &ReceivedNote<NoteRef, Note>) -> bool

Available on crate feature orchard only.

Returns whether the specified Orchard note should be retained.

Source

fn should_retain_ironwood(&self, note: &ReceivedNote<NoteRef, Note>) -> bool

Available on crate feature orchard only.

Returns whether the specified Ironwood note should be retained. Ironwood notes are Orchard-shaped, so this uses the same note type as Orchard.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§