Skip to content

Commit 24b32cb

Browse files
Kimundibrson
authored andcommitted
---
yaml --- r: 41463 b: refs/heads/snap-stage3 c: d13b23f h: refs/heads/master i: 41461: cbed98b 41459: 52076f4 41455: 7e4e384 v: v3
1 parent 5d82895 commit 24b32cb

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 96f0512a45ffebbe7488332ec5e44827a14ce78d
4+
refs/heads/snap-stage3: d13b23f37e014d1ac63e937e69d4d8b1ed7b68b0
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)