[][src]Trait dager::node::Node

pub trait Node {
    type InSig;
    type OutSig;
    pub fn process(&mut self, input: Self::InSig) -> Self::OutSig;

    pub fn default(&mut self, _aggregator: &mut dyn AbstAggregator) { ... }
pub fn name<'a>(&'a self) -> &'a str { ... } }

Associated Types

type InSig[src]

Signature of the input data

type OutSig[src]

Signature of the output data

Loading content...

Required methods

pub fn process(&mut self, input: Self::InSig) -> Self::OutSig[src]

The main process function that needs to be defined. Transforms some input to some output.

Loading content...

Provided methods

pub fn default(&mut self, _aggregator: &mut dyn AbstAggregator)[src]

Is called before the procesing on some node starts. Makes it possible for the node to set default values for its inputs

pub fn name<'a>(&'a self) -> &'a str[src]

If implemented this name is used while logging things about this node.

Loading content...

Implementors

Loading content...