Function std::num::from_int[src]

pub fn from_int<A: FromPrimitive>(n: int) -> Option<A>

A utility function that just calls FromPrimitive::from_int.