pub struct DirEntry { /* private fields */ }
Expand description
Wrapper around std::fs::DirEntry
which adds more
helpful information to all errors.
Implementations
sourceimpl DirEntry
impl DirEntry
sourcepub fn path(&self) -> PathBuf
pub fn path(&self) -> PathBuf
Wrapper for DirEntry::path
.
sourcepub fn metadata(&self) -> Result<Metadata>
pub fn metadata(&self) -> Result<Metadata>
Wrapper for DirEntry::metadata
.
sourcepub fn file_type(&self) -> Result<FileType>
pub fn file_type(&self) -> Result<FileType>
Wrapper for DirEntry::file_type
.
sourcepub fn file_name(&self) -> OsString
pub fn file_name(&self) -> OsString
Wrapper for DirEntry::file_name
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnwindSafe for DirEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more