Skip to content

Commit a840378

Browse files
committed
---
yaml --- r: 46327 b: refs/heads/auto c: ed7c9c4 h: refs/heads/master i: 46325: c8e9727 46323: 07e31cd 46319: 9aa88ac v: v3
1 parent 14b240d commit a840378

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: b47e1e9eda303e42896821cbc8d9bbc127890abb
17+
refs/heads/auto: ed7c9c4e2a248c33f12c4a14d23dfe1b347a6310

branches/auto/src/libstd/deque.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ impl<T> Container for Deque<T> {
2828
pure fn is_empty(&self) -> bool { self.len() == 0 }
2929
}
3030

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+
3140
impl<T: Copy> Deque<T> {
3241
static pure fn new() -> Deque<T> {
3342
Deque{nelts: 0, lo: 0, hi: 0,

0 commit comments

Comments
 (0)