pub trait Additive {
    // Required methods
    fn add(a: &Self, b: &Self) -> Self;
    fn sub(a: &Self, b: &Self) -> Self;
    fn negate(x: &Self) -> Self;
}

Required Methods§

source

fn add(a: &Self, b: &Self) -> Self

source

fn sub(a: &Self, b: &Self) -> Self

source

fn negate(x: &Self) -> Self

Object Safety§

This trait is not object safe.

Implementors§