An interface for numeric types

Interface Num

Method add

fn add(other: &self) -> self

Method sub

fn sub(other: &self) -> self

Method mul

fn mul(other: &self) -> self

Method div

fn div(other: &self) -> self

Method modulo

fn modulo(other: &self) -> self

Method neg

fn neg() -> self

Method to_int

fn to_int() -> int

Method from_int

fn from_int(n: int) -> self

Interface One

Method one

fn one() -> self

Interface Zero

Method zero

fn zero() -> self