pub struct WalkItem {
pub path: PathBuf,
pub depth: i16,
}Fields§
§path: PathBuf§depth: i16Implementations§
Source§impl WalkItem
impl WalkItem
pub fn new(raw: PathBuf) -> Self
pub fn with_depth(self, depth: i16) -> Self
pub fn is_link(&self) -> bool
pub fn read_link(&self) -> Result<PathBuf>
pub fn is_directory(&self) -> bool
pub fn read_directory(&self) -> Result<ReadDir>
pub fn is_file(&self) -> bool
pub fn read_file(&self) -> Result<File>
pub fn read_file_string(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WalkItem
impl RefUnwindSafe for WalkItem
impl Send for WalkItem
impl Sync for WalkItem
impl Unpin for WalkItem
impl UnwindSafe for WalkItem
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