Skip to content

Commit b45c288

Browse files
committed
---
yaml --- r: 22593 b: refs/heads/master c: 73a24b8 h: refs/heads/master i: 22591: 0c4285a v: v3
1 parent 984bdad commit b45c288

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,5 +1,5 @@
11
---
2-
refs/heads/master: 7b8171ef2d03e4a2235b4bf0af255dab1b53bc25
2+
refs/heads/master: 73a24b8abbf73c6111d6f92117abe9cd6b9ef8a8
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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)