1
2
3
4
5
6
7
pub trait Node<Input, Output> {
    fn process(&mut self, input: Input) -> Output;
}

pub trait ReadableNode<Output> {
    fn read(&self) -> Output;
}