Skip to main content

CrossModuleOperator

Trait CrossModuleOperator 

Source
pub trait CrossModuleOperator<Input, Output> {
    // Required methods
    fn apply(&self, input: &Input) -> CoreResult<Output>;
    fn apply_inplace(&self, data: &mut Input) -> CoreResult<()>
       where Input: From<Output>;
    fn operator_name(&self) -> &str;
    fn input_info(&self) -> &str;
    fn output_info(&self) -> &str;
    fn is_deterministic(&self) -> bool;
}
Expand description

Trait for cross-module operators

Required Methods§

Source

fn apply(&self, input: &Input) -> CoreResult<Output>

Apply the operation

Source

fn apply_inplace(&self, data: &mut Input) -> CoreResult<()>
where Input: From<Output>,

Apply in-place if possible

Source

fn operator_name(&self) -> &str

Get the operator name

Source

fn input_info(&self) -> &str

Get input type information

Source

fn output_info(&self) -> &str

Get output type information

Source

fn is_deterministic(&self) -> bool

Check if operator is deterministic

Implementors§