File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: b47e1e9eda303e42896821cbc8d9bbc127890abb
17
+ refs/heads/auto: ed7c9c4e2a248c33f12c4a14d23dfe1b347a6310
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