pub trait Node: Block {
type ConnectionInstructions: Clone + Default;
// Required method
fn connect(
&mut self,
other: &mut Self,
instructions: &Self::ConnectionInstructions,
);
}Required Associated Types§
Sourcetype ConnectionInstructions: Clone + Default
type ConnectionInstructions: Clone + Default
Define the argument struct for connecting blocks.
Required Methods§
Sourcefn connect(
&mut self,
other: &mut Self,
instructions: &Self::ConnectionInstructions,
)
fn connect( &mut self, other: &mut Self, instructions: &Self::ConnectionInstructions, )
Connect a parent node to a new child.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.