Skip to main content

InputView

Trait InputView 

Source
pub trait InputView<NoteRef> {
    // Required methods
    fn note_id(&self) -> &NoteRef;
    fn value(&self) -> Zatoshis;
}
Available on crate feature orchard only.
Expand description

A trait that provides a minimized view of an Orchard input suitable for use in fee and change calculation.

Required Methods§

Source

fn note_id(&self) -> &NoteRef

An identifier for the input being spent.

Source

fn value(&self) -> Zatoshis

The value of the input being spent.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<N> InputView<N> for Infallible

Source§

fn note_id(&self) -> &N

Source§

fn value(&self) -> Zatoshis

Source§

impl<NoteRef> InputView<NoteRef> for (NoteRef, NoteValue)

Source§

fn note_id(&self) -> &NoteRef

Source§

fn value(&self) -> Zatoshis

Implementors§

Source§

impl<NoteRef> InputView<NoteRef> for ReceivedNote<NoteRef, Note>