Skip to content

Commit 3d32554

Browse files
Kimundibrson
authored andcommitted
---
yaml --- r: 42930 b: refs/heads/try c: d13b23f h: refs/heads/master v: v3
1 parent 78c0426 commit 3d32554

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 96f0512a45ffebbe7488332ec5e44827a14ce78d
5+
refs/heads/try: d13b23f37e014d1ac63e937e69d4d8b1ed7b68b0
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/src/libcore/num/num.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// except according to those terms.
1010

1111
//! An interface for numeric types
12+
use cmp::Eq;
13+
use option::{None, Option, Some};
1214

1315
pub trait Num {
1416
// FIXME: Trait composition. (#2616)
@@ -50,3 +52,11 @@ pub enum RoundMode {
5052
RoundToZero,
5153
RoundFromZero
5254
}
55+
56+
pub trait ToStrRadix {
57+
pub pure fn to_str_radix(&self, radix: uint) -> ~str;
58+
}
59+
60+
pub trait FromStrRadix {
61+
static pub pure fn from_str_radix(str: &str, radix: uint) -> Option<self>;
62+
}

0 commit comments

Comments
 (0)