pub struct DirEntry<'a> { /* private fields */ }
Available on crate feature
fs
only.Expand description
Entries returned by the ReadDir
iterator.
Implementations§
source§impl<'a> DirEntry<'a>
impl<'a> DirEntry<'a>
sourcepub fn path(&self) -> String
pub fn path(&self) -> String
Returns the full path to the file that this entry represents.
The full path is created by joining the original path to read_dir
with the filename of this entry.
Trait Implementations§
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