[][src]Trait len_constraints::type_math::Operator

pub trait Operator: Debug + Default {
    fn do(a: usize, b: usize) -> Result<usize, Box<dyn Error + 'static>>;
}

A type representing an operator that can be used as a generic type argument

Required methods

fn do(a: usize, b: usize) -> Result<usize, Box<dyn Error + 'static>>

Performs the operation represented by this type between a and b

Loading content...

Implementors

impl Operator for Add[src]

impl Operator for Div[src]

impl Operator for Mul[src]

impl Operator for Sub[src]

Loading content...