pub struct DirEntry {
pub path: PathBuf,
pub file_name: OsString,
pub is_file: bool,
pub is_dir: bool,
pub is_symlink: bool,
}Expand description
Metadata for an entry directly inside a directory.
Fields§
§path: PathBufEntry path.
file_name: OsStringEntry file name.
is_file: boolWhether the entry is a regular file.
is_dir: boolWhether the entry is a directory.
is_symlink: boolWhether the entry is a symlink.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DirEntry
impl RefUnwindSafe for DirEntry
impl Send for DirEntry
impl Sync for DirEntry
impl Unpin for DirEntry
impl UnsafeUnpin for DirEntry
impl UnwindSafe for DirEntry
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