#[non_exhaustive]pub struct DirEntry {
pub name: String,
pub child: u64,
pub item_type: DirItemType,
}Expand description
One directory entry: a child’s name, its inode objectid, and its declared type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe entry name (UTF-8 lossy; a directory entry name is raw bytes on disk, decoded permissively so a non-UTF-8 name is surfaced, not dropped).
child: u64The child inode’s objectid (location.objectid of the dir item).
item_type: DirItemTypeThe child’s declared type.
Trait Implementations§
impl Eq for DirEntry
impl StructuralPartialEq for DirEntry
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