@@ -41,10 +41,11 @@ use std::path::is_sep;
41
41
* pattern - see the `glob` function for more details.
42
42
*/
43
43
pub struct Paths {
44
- priv root : Path ,
45
- priv dir_patterns : Vec < Pattern > ,
46
- priv options : MatchOptions ,
47
- priv todo : Vec < ( Path , uint ) > }
44
+ root : Path ,
45
+ dir_patterns : Vec < Pattern > ,
46
+ options : MatchOptions ,
47
+ todo : Vec < ( Path , uint ) > ,
48
+ }
48
49
49
50
///
50
51
/// Return an iterator that produces all the Paths that match the given pattern,
@@ -176,7 +177,8 @@ fn list_dir_sorted(path: &Path) -> Vec<Path> {
176
177
*/
177
178
#[ deriving( Clone , Eq , TotalEq , Ord , TotalOrd , Hash , Default ) ]
178
179
pub struct Pattern {
179
- priv tokens : Vec < PatternToken > }
180
+ tokens : Vec < PatternToken > ,
181
+ }
180
182
181
183
#[ deriving( Clone , Eq , TotalEq , Ord , TotalOrd , Hash ) ]
182
184
enum PatternToken {
@@ -513,21 +515,21 @@ pub struct MatchOptions {
513
515
* currently only considers upper/lower case relationships between ASCII characters,
514
516
* but in future this might be extended to work with Unicode.
515
517
*/
516
- priv case_sensitive : bool ,
518
+ case_sensitive : bool ,
517
519
518
520
/**
519
521
* If this is true then path-component separator characters (e.g. `/` on Posix)
520
522
* must be matched by a literal `/`, rather than by `*` or `?` or `[...]`
521
523
*/
522
- priv require_literal_separator : bool ,
524
+ require_literal_separator : bool ,
523
525
524
526
/**
525
527
* If this is true then paths that contain components that start with a `.` will
526
528
* not match unless the `.` appears literally in the pattern: `*`, `?` or `[...]`
527
529
* will not match. This is useful because such files are conventionally considered
528
530
* hidden on Unix systems and it might be desirable to skip them when listing files.
529
531
*/
530
- priv require_literal_leading_dot : bool
532
+ require_literal_leading_dot : bool
531
533
}
532
534
533
535
impl MatchOptions {
0 commit comments