pub struct DirectoryEntry {
pub inode: u32,
pub rec_len: u16,
pub name_len: u8,
pub file_type: u8,
}Expand description
On-disk directory entry header (the name bytes follow immediately).
Fields§
§inode: u32Inode number this entry refers to (0 = deleted / unused).
rec_len: u16Total size of this directory entry (header + name + padding).
name_len: u8Length of the file name in bytes.
file_type: u8File type code (see FileType). Only valid when INCOMPAT_FILETYPE
is enabled; otherwise this byte is the high byte of the old name_len
field.
Implementations§
Trait Implementations§
Source§impl Clone for DirectoryEntry
impl Clone for DirectoryEntry
Source§fn clone(&self) -> DirectoryEntry
fn clone(&self) -> DirectoryEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 DirectoryEntry
impl Debug for DirectoryEntry
Source§impl Default for DirectoryEntry
impl Default for DirectoryEntry
Source§fn default() -> DirectoryEntry
fn default() -> DirectoryEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectoryEntry
impl RefUnwindSafe for DirectoryEntry
impl Send for DirectoryEntry
impl Sync for DirectoryEntry
impl Unpin for DirectoryEntry
impl UnsafeUnpin for DirectoryEntry
impl UnwindSafe for DirectoryEntry
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