Skip to content

Commit 3aed498

Browse files
committed
Merge pull request #2125 from erickt/master
fleshing out time.rs
2 parents 12d3d4f + 159d896 commit 3aed498

File tree

6 files changed

+1256
-27
lines changed

6 files changed

+1256
-27
lines changed

Diff for: src/libcore/result.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,15 @@ fn chain_err<T: copy, U: copy, V: copy>(
108108
}
109109
}
110110

111-
impl methods<T:copy,E:copy> for result<T,E> {
111+
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)