Skip to content

Commit 84a6511

Browse files
committed
---
yaml --- r: 146826 b: refs/heads/try2 c: ae836c1 h: refs/heads/master v: v3
1 parent 3ab4713 commit 84a6511

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: b6ab4f2485c5e4bc6c18868c4e4c522404f77b20
8+
refs/heads/try2: ae836c1e44d7459d4588e622a8535f127e32716f
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)