Trait OApiOperator

Source
pub trait OApiOperator<T> {
    // Required methods
    fn get(&self) -> Result<Vec<SparseValue<'_, T>>, SparseError>;
    fn new(val: Vec<OperatorSelector<T>>) -> Self;
}
Expand description

§OApi Operator trait

This trait is implemented by the operators. The operators allows to aggregate multiple part of a schema to form one.

Required Methods§

Source

fn get(&self) -> Result<Vec<SparseValue<'_, T>>, SparseError>

Get the values pointed by the operator

Source

fn new(val: Vec<OperatorSelector<T>>) -> Self

Create a operator providing values

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§