File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: b6ab4f2485c5e4bc6c18868c4e4c522404f77b20
2
+ refs/heads/master: ae836c1e44d7459d4588e622a8535f127e32716f
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5
5
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ use cast;
18
18
use container:: Container ;
19
19
use iter:: Iterator ;
20
20
use option:: { None , Option , Some } ;
21
+ use rc:: Rc ;
21
22
use str:: { Str , StrSlice } ;
22
23
use vec:: { Vector , ImmutableVector } ;
23
24
@@ -325,6 +326,13 @@ impl<A:IterBytes> IterBytes for @mut A {
325
326
}
326
327
}
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
+
328
336
impl < A : IterBytes > IterBytes for ~A {
329
337
#[ inline]
330
338
fn iter_bytes ( & self , lsb0 : bool , f : Cb ) -> bool {
You can’t perform that action at this time.
0 commit comments