We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ab4f2 commit ae836c1Copy full SHA for ae836c1
src/libstd/to_bytes.rs
@@ -18,6 +18,7 @@ use cast;
18
use container::Container;
19
use iter::Iterator;
20
use option::{None, Option, Some};
21
+use rc::Rc;
22
use str::{Str, StrSlice};
23
use vec::{Vector, ImmutableVector};
24
@@ -325,6 +326,13 @@ impl<A:IterBytes> IterBytes for @mut A {
325
326
}
327
328
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
+
336
impl<A:IterBytes> IterBytes for ~A {
337
#[inline]
338
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
0 commit comments