Interface num

An interface for numbers.

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