Skip to content

Commit b27a2a2

Browse files
committed
---
yaml --- r: 90039 b: refs/heads/master c: ae836c1 h: refs/heads/master i: 90037: 400669d 90035: 7107c61 90031: 3fc4e4c v: v3
1 parent 55b846e commit b27a2a2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-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: b6ab4f2485c5e4bc6c18868c4e4c522404f77b20
2+
refs/heads/master: ae836c1e44d7459d4588e622a8535f127e32716f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/src/libstd/to_bytes.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use cast;
1818
use container::Container;
1919
use iter::Iterator;
2020
use option::{None, Option, Some};
21+
use rc::Rc;
2122
use str::{Str, StrSlice};
2223
use vec::{Vector, ImmutableVector};
2324

@@ -325,6 +326,13 @@ impl<A:IterBytes> IterBytes for @mut A {
325326
}
326327
}
327328

329+
impl<A:IterBytes> IterBytes for Rc<A> {
330+
#[inline]
331+
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
332+
self.borrow().iter_bytes(lsb0, f)
333+
}
334+
}
335+
328336
impl<A:IterBytes> IterBytes for ~A {
329337
#[inline]
330338
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {

0 commit comments

Comments
 (0)