File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
branches/snap-stage3/src/libstd Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: b47e1e9eda303e42896821cbc8d9bbc127890abb
4
+ refs/heads/snap-stage3: ed7c9c4e2a248c33f12c4a14d23dfe1b347a6310
5
5
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -28,6 +28,15 @@ impl<T> Container for Deque<T> {
28
28
pure fn is_empty ( & self ) -> bool { self . len ( ) == 0 }
29
29
}
30
30
31
+ impl < T > Mutable for Deque < T > {
32
+ fn clear ( & mut self ) {
33
+ for vec:: each_mut( self . elts) |x| { * x = None }
34
+ self . nelts = 0 ;
35
+ self . lo = 0 ;
36
+ self . hi = 0 ;
37
+ }
38
+ }
39
+
31
40
impl < T : Copy > Deque < T > {
32
41
static pure fn new( ) -> Deque <T > {
33
42
Deque { nelts: 0 , lo: 0 , hi: 0 ,
You can’t perform that action at this time.
0 commit comments