pub struct DirEntry<'a> { /* private fields */ }
Implementations§
Source§impl DirEntry<'_>
impl DirEntry<'_>
Sourcepub fn is_relative_reference(&self) -> bool
pub fn is_relative_reference(&self) -> bool
If the dir entry is .
or ..
pub fn file_type(&self) -> FileType
Sourcepub fn file_name(&self) -> Result<&str>
pub fn file_name(&self) -> Result<&str>
Gets the utf8 filename of the entity
§Errors
The file name is not null terminated, or that null terminated name is not utf8
Sourcepub fn file_unix_name(&self) -> Result<&UnixStr>
pub fn file_unix_name(&self) -> Result<&UnixStr>
Auto Trait Implementations§
impl<'a> Freeze for DirEntry<'a>
impl<'a> RefUnwindSafe for DirEntry<'a>
impl<'a> Send for DirEntry<'a>
impl<'a> Sync for DirEntry<'a>
impl<'a> Unpin for DirEntry<'a>
impl<'a> UnwindSafe for DirEntry<'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