pub struct DirEntryInfo {
pub name: OsString,
pub path: PathBuf,
pub kind: EntryKind,
}Expand description
One entry in a directory listing.
Fields§
§name: OsStringThe file name only. Kept as an OsString so non-UTF-8 names survive intact;
rendering lossy-converts, but we never lose the real name (ADR-0005 §6).
path: PathBuf§kind: EntryKindTrait Implementations§
Source§impl Clone for DirEntryInfo
impl Clone for DirEntryInfo
Source§fn clone(&self) -> DirEntryInfo
fn clone(&self) -> DirEntryInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DirEntryInfo
impl Debug for DirEntryInfo
impl Eq for DirEntryInfo
Source§impl PartialEq for DirEntryInfo
impl PartialEq for DirEntryInfo
impl StructuralPartialEq for DirEntryInfo
Auto Trait Implementations§
impl Freeze for DirEntryInfo
impl RefUnwindSafe for DirEntryInfo
impl Send for DirEntryInfo
impl Sync for DirEntryInfo
impl Unpin for DirEntryInfo
impl UnsafeUnpin for DirEntryInfo
impl UnwindSafe for DirEntryInfo
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