Skip to content

Commit 15f74cb

Browse files
rntzpcwalton
authored andcommitted
---
yaml --- r: 33843 b: refs/heads/snap-stage3 c: d2d6d95 h: refs/heads/master i: 33841: 9db0641 33839: 45f558d v: v3
1 parent 01a7d7c commit 15f74cb

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,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ca6970a65ebdc153d53e9b6c2ccb224ee705ac94
4+
refs/heads/snap-stage3: d2d6d955f45682399bce2a270e1ffaf2908fe0b0
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)