Skip to content

Commit 0935e87

Browse files
committed
---
yaml --- r: 145941 b: refs/heads/try2 c: 7fcdcae h: refs/heads/master i: 145939: 527c194 v: v3
1 parent 4080727 commit 0935e87

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-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: 33adf6dd6e0dd69af29ee11a1a7a2e11c998938c
8+
refs/heads/try2: 7fcdcaeda7c264cde63df79ce5d189d91567f70b
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/path2/posix.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use iter::{AdditiveIterator, Extendable, Iterator};
1919
use option::{Option, None, Some};
2020
use str;
2121
use str::Str;
22+
use to_bytes::IterBytes;
2223
use util;
2324
use vec;
2425
use vec::CopyableVector;
@@ -75,6 +76,13 @@ impl ToCStr for Path {
7576
}
7677
}
7778

79+
impl IterBytes for Path {
80+
#[inline]
81+
fn iter_bytes(&self, lsb0: bool, f: &fn(buf: &[u8]) -> bool) -> bool {
82+
self.repr.iter_bytes(lsb0, f)
83+
}
84+
}
85+
7886
impl GenericPathUnsafe for Path {
7987
unsafe fn from_vec_unchecked(path: &[u8]) -> Path {
8088
let path = Path::normalize(path);

branches/try2/src/libstd/path2/windows.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use iter::{AdditiveIterator, Extendable, Iterator};
1919
use option::{Option, Some, None};
2020
use str;
2121
use str::{OwnedStr, Str, StrVector};
22+
use to_bytes::IterBytes;
2223
use util;
2324
use vec::Vector;
2425
use super::{GenericPath, GenericPathUnsafe};
@@ -97,6 +98,13 @@ impl ToCStr for Path {
9798
}
9899
}
99100

101+
impl IterBytes for Path {
102+
#[inline]
103+
fn iter_bytes(&self, lsb0: bool, f: &fn(&[u8]) -> bool) -> bool {
104+
self.repr.iter_bytes(lsb0, f)
105+
}
106+
}
107+
100108
impl GenericPathUnsafe for Path {
101109
/// See `GenericPathUnsafe::from_vec_unchecked`.
102110
///

0 commit comments

Comments
 (0)