pub struct DirScanner { /* private fields */ }
Expand description
Struct used to traverse directories and collect entries located within.
Implementations§
Source§impl DirScanner
impl DirScanner
Sourcepub fn get_entries(self, dir: &Path) -> Result<Vec<PathBuf>>
pub fn get_entries(self, dir: &Path) -> Result<Vec<PathBuf>>
Given a directory, traverse path and get entries located within dir
.
If the DirScanner::recursive
method is not called before get_entries
, it
will only traverse one level below.
Trait Implementations§
Source§impl Debug for DirScanner
impl Debug for DirScanner
Auto Trait Implementations§
impl Freeze for DirScanner
impl RefUnwindSafe for DirScanner
impl Send for DirScanner
impl Sync for DirScanner
impl Unpin for DirScanner
impl UnwindSafe for DirScanner
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