Skip to main content

OperationOutput

Trait OperationOutput 

pub trait OperationOutput<O> {
    // Required methods
    fn output(self) -> O;
    fn outputs<const N: usize>(self) -> [O; N];
}
Expand description

Extension trait to extract outputs when registering an operation.

Required Methods§

fn output(self) -> O

Extract a single output.

fn outputs<const N: usize>(self) -> [O; N]

Extract a fixed number of outputs.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

§

impl<O> OperationOutput<O> for Vec<O>
where O: Debug,

§

fn output(self) -> O

§

fn outputs<const N: usize>(self) -> [O; N]

Implementors§