2012-12-13 16:55:08 -06:00
|
|
|
pub mod num {
|
|
|
|
pub trait Num2 {
|
2013-03-22 13:23:21 -05:00
|
|
|
fn from_int2(n: int) -> Self;
|
2012-12-13 16:55:08 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-26 01:26:09 -05:00
|
|
|
pub mod f64 {
|
|
|
|
impl ::num::Num2 for f64 {
|
|
|
|
fn from_int2(n: int) -> f64 { return n as f64; }
|
2012-12-13 16:55:08 -06:00
|
|
|
}
|
2012-12-28 19:17:05 -06:00
|
|
|
}
|