Skip to main content

OutputView

Trait OutputView 

Source
pub trait OutputView {
    // Required method
    fn value(&self) -> Zatoshis;
}
Available on crate feature orchard only.
Expand description

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

Required Methods§

Source

fn value(&self) -> Zatoshis

The value of the output being produced.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl OutputView for Infallible

Source§

fn value(&self) -> Zatoshis

Source§

impl OutputView for Zatoshis

Source§

fn value(&self) -> Zatoshis

Implementors§