Skip to content

Commit 64bc4c3

Browse files
committed
---
yaml --- r: 15311 b: refs/heads/try c: 7244463 h: refs/heads/master i: 15309: 3408c4e 15307: 5a6515e 15303: 180801a 15295: 1bb74ec v: v3
1 parent c294899 commit 64bc4c3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 2ad20df40b94e38cc576b3d24977c1108ca3fe82
5+
refs/heads/try: 72444636d32b34743e14bbd25c3ffc579b881af8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/result.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ fn chain_err<T: copy, U: copy, V: copy>(
109109
}
110110

111111
impl extensions<T:copy, E:copy> for result<T,E> {
112+
fn get() -> T { get(self) }
113+
114+
fn get_err() -> E { get_err(self) }
115+
116+
fn success() -> bool { success(self) }
117+
118+
fn failure() -> bool { failure(self) }
119+
112120
fn chain<U:copy>(op: fn(T) -> result<U,E>) -> result<U,E> {
113121
chain(self, op)
114122
}

0 commit comments

Comments
 (0)