Skip to content

Commit 18dbf06

Browse files
committed
---
yaml --- r: 13060 b: refs/heads/master c: b451659 h: refs/heads/master v: v3
1 parent 6f8810b commit 18dbf06

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: df83a793d9037878c21481ac714960cb98dc9af6
2+
refs/heads/master: b4516590e4c17d1927d57359dd1dcef30366379b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/libcore/to_str.rs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
iface to_str { fn to_str() -> str; }
22

3-
impl of to_str for int {
4-
fn to_str() -> str { int::str(self) }
3+
impl of to_str for i8 {
4+
fn to_str() -> str { i8::str(self) }
55
}
6-
impl of to_str for uint {
7-
fn to_str() -> str { uint::str(self) }
6+
impl of to_str for i16 {
7+
fn to_str() -> str { i16::str(self) }
8+
}
9+
impl of to_str for i32 {
10+
fn to_str() -> str { i32::str(self) }
11+
}
12+
impl of to_str for i64 {
13+
fn to_str() -> str { i64::str(self) }
814
}
915
impl of to_str for u8 {
10-
fn to_str() -> str { uint::str(self as uint) }
16+
fn to_str() -> str { u8::str(self) }
17+
}
18+
impl of to_str for u16 {
19+
fn to_str() -> str { u16::str(self) }
20+
}
21+
impl of to_str for u32 {
22+
fn to_str() -> str { u32::str(self) }
23+
}
24+
impl of to_str for u64 {
25+
fn to_str() -> str { u64::str(self) }
1126
}
1227
impl of to_str for float {
1328
fn to_str() -> str { float::to_str(self, 4u) }

0 commit comments

Comments
 (0)