pub struct DirReader<'a> { /* private fields */ }Expand description
Lists directories on behalf of the tree, applying ignore rules as it goes.
Implementations§
Source§impl<'a> DirReader<'a>
impl<'a> DirReader<'a>
pub fn new( fs: &'a dyn FileSystemService, root: &Path, options: IgnoreOptions, ) -> Self
Sourcepub fn unfiltered(fs: &'a dyn FileSystemService) -> Self
pub fn unfiltered(fs: &'a dyn FileSystemService) -> Self
A reader that hides nothing.
pub fn rules(&self) -> &IgnoreRules
Sourcepub fn service(&self) -> &dyn FileSystemService
pub fn service(&self) -> &dyn FileSystemService
The underlying service, for callers that need to mutate as well as list.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DirReader<'a>
impl<'a> !UnwindSafe for DirReader<'a>
impl<'a> Freeze for DirReader<'a>
impl<'a> Send for DirReader<'a>
impl<'a> Sync for DirReader<'a>
impl<'a> Unpin for DirReader<'a>
impl<'a> UnsafeUnpin for DirReader<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more