Trait arithmetic_eval::arith::CheckedArithmeticKind[][src]

pub trait CheckedArithmeticKind<T> {
    fn checked_neg(value: T) -> Option<T>;
}
Expand description

Helper trait for CheckedArithmetic describing how number negation should be implemented.

Required methods

fn checked_neg(value: T) -> Option<T>[src]

Negates the provided value, or returns None if the value cannot be negated.

Implementors