pub trait Num: Debug + Clone + PartialEq + PartialOrd + FromStr + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Rem<Output = Self> + Neg<Output = Self> + AddAssign + SubAssign + MulAssign + DivAssign {
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn is_whole(&self) -> bool;
fn pow(self, other: Self) -> Self;
}
Expand description
Defines the minimum operations and definitions to parse and evaluate expressions.
Required Methods§
Object Safety§
This trait is not object safe.