protoflow_core

Trait BlockDescriptor

source
pub trait BlockDescriptor: MaybeNamed + MaybeLabeled {
    // Provided methods
    fn ports(&self) -> Vec<PortDescriptor> { ... }
    fn inputs(&self) -> Vec<PortDescriptor> { ... }
    fn outputs(&self) -> Vec<PortDescriptor> { ... }
    fn parameters(&self) -> Vec<ParameterDescriptor> { ... }
}
Expand description

A block is an autonomous unit of computation in a system.

Provided Methods§

source

fn ports(&self) -> Vec<PortDescriptor>

A description of this block’s I/O ports.

source

fn inputs(&self) -> Vec<PortDescriptor>

A description of this block’s input ports.

source

fn outputs(&self) -> Vec<PortDescriptor>

A description of this block’s output ports.

source

fn parameters(&self) -> Vec<ParameterDescriptor>

A description of this block’s parameters.

Implementors§