Skip to content

Commit 67a1b95

Browse files
committed
---
yaml --- r: 20485 b: refs/heads/snap-stage3 c: 73a24b8 h: refs/heads/master i: 20483: b4b7d87 v: v3
1 parent 5a485a9 commit 67a1b95

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
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: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 7b8171ef2d03e4a2235b4bf0af255dab1b53bc25
4+
refs/heads/snap-stage3: 73a24b8abbf73c6111d6f92117abe9cd6b9ef8a8
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/bitv.rs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,29 @@ fn eq_vec(v0: bitv, v1: ~[uint]) -> bool {
235235
ret true;
236236
}
237237

238-
impl methods for bitv {
238+
trait methods {
239+
fn union(rhs: bitv) -> bool;
240+
fn intersect(rhs: bitv) -> bool;
241+
fn assign(rhs: bitv) -> bool;
242+
fn get(i: uint) -> bool;
243+
fn [](i: uint) -> bool;
244+
fn eq(rhs: bitv) -> bool;
245+
fn clear();
246+
fn set_all();
247+
fn invert();
248+
fn difference(rhs: bitv) -> bool;
249+
fn set(i: uint, x: bool);
250+
fn is_true() -> bool;
251+
fn is_false() -> bool;
252+
fn to_vec() -> ~[uint];
253+
fn each(f: fn(bool) -> bool);
254+
fn each_storage(f: fn(&uint) -> bool);
255+
fn eq_vec(v: ~[uint]) -> bool;
256+
257+
fn ones(f: fn(uint) -> bool);
258+
}
259+
260+
impl of methods for bitv {
239261
fn union(rhs: bitv) -> bool { union(self, rhs) }
240262
fn intersect(rhs: bitv) -> bool { intersect(self, rhs) }
241263
fn assign(rhs: bitv) -> bool { assign(self, rhs) }

0 commit comments

Comments
 (0)