Make NumCast trait public
This commit is contained in:
parent
e837ab52f3
commit
7316fa4397
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
* the Num trait. I've found that it is especially handy in generic functions
|
||||
* when you need to mix floating point and integer values.
|
||||
*/
|
||||
trait NumCast {
|
||||
pub trait NumCast {
|
||||
static pure fn from<T:NumCast>(n: T) -> self;
|
||||
pure fn cast<T:NumCast>() -> T;
|
||||
|
||||
|
|
Loading…
Reference in a new issue