pub trait Node: Send + Sync {
// Required methods
fn id(&self) -> NodeId;
fn input_port_defs(&self) -> &'static [InputPortDef];
// Provided method
fn output_port_defs(&self) -> &'static [OutputPortDef] { ... }
}pub trait Node: Send + Sync {
// Required methods
fn id(&self) -> NodeId;
fn input_port_defs(&self) -> &'static [InputPortDef];
// Provided method
fn output_port_defs(&self) -> &'static [OutputPortDef] { ... }
}