pub struct Directory { /* private fields */ }Implementations§
Source§impl Directory
impl Directory
pub fn new(root: &Path, ignore: bool) -> Result<Self, Error>
pub fn new_with_empty_body(root: &Path, ignore: bool) -> Result<Self, Error>
Sourcepub fn print_body(&self) -> Result<(), Error>
pub fn print_body(&self) -> Result<(), Error>
Wrapper function to print Directory body’s structure.
Sourcepub fn fast_print_body(&self) -> Result<(), Error>
pub fn fast_print_body(&self) -> Result<(), Error>
For printing from an empty directory state when concerned about speed. We output the tree as we traverse our directory tree.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnwindSafe for Directory
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