Skip to main content

InputOutput

Trait InputOutput 

Source
pub trait InputOutput: PineOutput {
    // Required methods
    fn add_input(&mut self, input: Input);
    fn inputs(&self) -> &[Input];
}
Expand description

Extension trait for recording declared inputs

Required Methods§

Source

fn add_input(&mut self, input: Input)

Record a declared input.

Source

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

Every input declared so far, in declaration order.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§