2012-12-13 16:55:08 -06:00
|
|
|
pub mod num {
|
|
|
|
pub trait Num2 {
|
2013-03-21 21:07:54 -05:00
|
|
|
pure fn from_int2(n: int) -> Self;
|
2012-12-13 16:55:08 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod float {
|
2013-02-14 13:47:00 -06:00
|
|
|
impl ::num::Num2 for float {
|
2013-03-21 21:07:54 -05:00
|
|
|
pure fn from_int2(n: int) -> float { return n as float; }
|
2012-12-13 16:55:08 -06:00
|
|
|
}
|
2012-12-28 19:17:05 -06:00
|
|
|
}
|