Skip to content

Commit 47f46c4

Browse files
rntzpcwalton
authored andcommitted
---
yaml --- r: 35262 b: refs/heads/master c: d2d6d95 h: refs/heads/master v: v3
1 parent 09a0869 commit 47f46c4

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
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: ca6970a65ebdc153d53e9b6c2ccb224ee705ac94
2+
refs/heads/master: d2d6d955f45682399bce2a270e1ffaf2908fe0b0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/src/libcore/to_bytes.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,25 @@ impl<A: IterBytes> &[A]: IterBytes {
191191
}
192192
}
193193

194+
impl<A: IterBytes, B: IterBytes> (A,B): IterBytes {
195+
#[inline(always)]
196+
pure fn iter_bytes(lsb0: bool, f: Cb) {
197+
let &(ref a, ref b) = &self;
198+
a.iter_bytes(lsb0, f);
199+
b.iter_bytes(lsb0, f);
200+
}
201+
}
202+
203+
impl<A: IterBytes, B: IterBytes, C: IterBytes> (A,B,C): IterBytes {
204+
#[inline(always)]
205+
pure fn iter_bytes(lsb0: bool, f: Cb) {
206+
let &(ref a, ref b, ref c) = &self;
207+
a.iter_bytes(lsb0, f);
208+
b.iter_bytes(lsb0, f);
209+
c.iter_bytes(lsb0, f);
210+
}
211+
}
212+
194213
// Move this to vec, probably.
195214
pure fn borrow<A>(a: &x/[A]) -> &x/[A] {
196215
a

0 commit comments

Comments
 (0)