[][src]Trait siraph::Node

pub trait Node<Ctx> {
    pub fn register(&self, r: &mut Register);
pub fn process(&mut self, ctx: &Ctx);
pub fn reset(&mut self); }

Nodes are signal processing units. They take data from their inputs to and send it back through their outputs.

Required methods

pub fn register(&self, r: &mut Register)[src]

Registers the inputs and outputs of a node. This function should do the same thing everytime it gets called.

pub fn process(&mut self, ctx: &Ctx)[src]

Processes the inputs of this node to write its outputs.

pub fn reset(&mut self)[src]

Resets the node in its initial state.

Loading content...

Implementors

impl<Ctx> Node<Ctx> for Pulse[src]

impl<I, Ctx> Node<Ctx> for FromIter<I> where
    I: Iterator,
    I::Item: 'static + Clone
[src]

impl<T, U, F, Ctx> Node<Ctx> for Map<T, U, F> where
    T: 'static + Clone,
    U: 'static,
    F: FnMut(T) -> U, 
[src]

impl<T: 'static + Clone, Ctx> Node<Ctx> for Const<T>[src]

impl<T: 'static + Clone, Ctx> Node<Ctx> for Hold<T>[src]

impl<T: 'static + Clone, Ctx> Node<Ctx> for Offset<T>[src]

impl<T: 'static + Clone, Ctx> Node<Ctx> for ReplaceNone<T>[src]

Loading content...