pub struct DirEntry<'a> { /* private fields */ }
Implementations§
source§impl<'a> DirEntry<'a>
impl<'a> DirEntry<'a>
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> 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