Trait Arithmetic

Source
pub trait Arithmetic {
    // Required methods
    fn add(self, other: Expression) -> Result<Expression, Error>;
    fn sub(self, other: Expression) -> Result<Expression, Error>;
    fn neg(self) -> Result<Expression, Error>;
}

Required Methods§

Implementations on Foreign Types§

Source§

impl Arithmetic for i128

Implementors§

Source§

impl Arithmetic for Expression

Source§

impl<T> Arithmetic for T
where T: Into<CanonicalAssets> + Debug,