pub struct DirEntry {
pub path: PathBuf,
pub file_name: String,
pub is_dir: bool,
}Expand description
A simplified directory entry for the Filesystem trait boundary.
Uses a custom type (not std::fs::DirEntry) so that test fakes can
construct instances without touching the real filesystem.
Fields§
§path: PathBuf§file_name: String§is_dir: boolAuto 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