Skip to main content

Node

Trait Node 

Source
pub trait Node: Send + Sync {
    // Required methods
    fn id(&self) -> NodeId;
    fn input_port_defs(&self) -> &'static [InputPortDef];
    fn input_ports(&self) -> Vec<PortRef>;

    // Provided method
    fn output_port_defs(&self) -> &'static [OutputPortDef] { ... }
}

Required Methods§

Source

fn id(&self) -> NodeId

Source

fn input_port_defs(&self) -> &'static [InputPortDef]

Source

fn input_ports(&self) -> Vec<PortRef>

Provided Methods§

Source

fn output_port_defs(&self) -> &'static [OutputPortDef]

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§