Make NumCast trait public

This commit is contained in:
Brendan Zabarauskas 2012-12-01 13:40:16 +10:00
parent e837ab52f3
commit 7316fa4397

View file

@ -4,7 +4,7 @@
* the Num trait. I've found that it is especially handy in generic functions * the Num trait. I've found that it is especially handy in generic functions
* when you need to mix floating point and integer values. * when you need to mix floating point and integer values.
*/ */
trait NumCast { pub trait NumCast {
static pure fn from<T:NumCast>(n: T) -> self; static pure fn from<T:NumCast>(n: T) -> self;
pure fn cast<T:NumCast>() -> T; pure fn cast<T:NumCast>() -> T;