An interface for numeric types
Num
add
fn add(other: &self) -> self
sub
fn sub(other: &self) -> self
mul
fn mul(other: &self) -> self
div
fn div(other: &self) -> self
modulo
fn modulo(other: &self) -> self
neg
fn neg() -> self
to_int
fn to_int() -> int
from_int
fn from_int(n: int) -> self
One
one
fn one() -> self
Zero
zero
fn zero() -> self