File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
branches/try/src/libcore/num Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: 96f0512a45ffebbe7488332ec5e44827a14ce78d
5
+ refs/heads/try: d13b23f37e014d1ac63e937e69d4d8b1ed7b68b0
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
//! An interface for numeric types
12
+ use cmp:: Eq ;
13
+ use option:: { None , Option , Some } ;
12
14
13
15
pub trait Num {
14
16
// FIXME: Trait composition. (#2616)
@@ -50,3 +52,11 @@ pub enum RoundMode {
50
52
RoundToZero ,
51
53
RoundFromZero
52
54
}
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
+ }
You can’t perform that action at this time.
0 commit comments