diff --git a/src/libcore/to_bytes.rs b/src/libcore/to_bytes.rs index ef15aa00f113..4ffa24e014e6 100644 --- a/src/libcore/to_bytes.rs +++ b/src/libcore/to_bytes.rs @@ -191,6 +191,28 @@ impl &[A]: IterBytes { } } +impl (A,B): IterBytes { + #[inline(always)] + pure fn iter_bytes(lsb0: bool, f: Cb) { + match self { + (ref a, ref b) => { + iter_bytes_2(a, b, lsb0, f); + } + } + } +} + +impl (A,B,C): IterBytes { + #[inline(always)] + pure fn iter_bytes(lsb0: bool, f: Cb) { + match self { + (ref a, ref b, ref c) => { + iter_bytes_3(a, b, c, lsb0, f); + } + } + } +} + // Move this to vec, probably. pure fn borrow(a: &x/[A]) -> &x/[A] { a