Trait BundleView

Source
pub trait BundleView<NoteRef> {
    type In: InputView<NoteRef>;
    type Out: OutputView;

    // Required methods
    fn bundle_type(&self) -> BundleType;
    fn inputs(&self) -> &[Self::In];
    fn outputs(&self) -> &[Self::Out];
}
Expand description

A trait that provides a minimized view of Sapling bundle configuration suitable for use in fee and change calculation.

Required Associated Types§

Source

type In: InputView<NoteRef>

The type of inputs to the bundle.

Source

type Out: OutputView

The type of inputs of the bundle.

Required Methods§

Source

fn bundle_type(&self) -> BundleType

Returns the type of the bundle

Source

fn inputs(&self) -> &[Self::In]

Returns the inputs to the bundle.

Source

fn outputs(&self) -> &[Self::Out]

Returns the outputs of the bundle.

Implementations on Foreign Types§

Source§

impl<'a, NoteRef, In: InputView<NoteRef>, Out: OutputView> BundleView<NoteRef> for (BundleType, &'a [In], &'a [Out])

Source§

type In = In

Source§

type Out = Out

Source§

fn bundle_type(&self) -> BundleType

Source§

fn inputs(&self) -> &[In]

Source§

fn outputs(&self) -> &[Out]

Implementors§