Node

Trait Node 

Source
pub trait Node: Block {
    type ConnectionInstructions: Clone + Default;

    // Required method
    fn connect(
        &mut self,
        other: &mut Self,
        instructions: &Self::ConnectionInstructions,
    );
}

Required Associated Types§

Source

type ConnectionInstructions: Clone + Default

Define the argument struct for connecting blocks.

Required Methods§

Source

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.

Implementors§