Skip to main content

GraphOperator

Trait GraphOperator 

Source
pub trait GraphOperator<T>: Send {
    // Required method
    fn process(&mut self, value: T) -> RuntimeResult<T>;
}
Expand description

Stateful transformation executed at one graph node.

Required Methods§

Source

fn process(&mut self, value: T) -> RuntimeResult<T>

Processes one owned value without an implicit device transfer.

Implementors§

Source§

impl<T, F> GraphOperator<T> for FnOperator<F>
where F: FnMut(T) -> RuntimeResult<T> + Send,