File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 7b8171ef2d03e4a2235b4bf0af255dab1b53bc25
2
+ refs/heads/master: 73a24b8abbf73c6111d6f92117abe9cd6b9ef8a8
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change @@ -235,7 +235,29 @@ fn eq_vec(v0: bitv, v1: ~[uint]) -> bool {
235
235
ret true;
236
236
}
237
237
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 {
239
261
fn union ( rhs : bitv ) -> bool { union ( self , rhs) }
240
262
fn intersect ( rhs : bitv ) -> bool { intersect ( self , rhs) }
241
263
fn assign ( rhs : bitv ) -> bool { assign ( self , rhs) }
You can’t perform that action at this time.
0 commit comments