Trait BlockDescriptor

Source
pub trait BlockDescriptor:
    AsBlockDescriptor
    + 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.

Trait Implementations§

Source§

impl Serialize for &dyn BlockDescriptor

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§