pub enum FileId {
Root,
Entry {
dir_cluster: u32,
index: u16,
},
}Expand description
A handle to a node. The root is distinct; every other node is addressed by its parent directory’s first cluster plus its 32-byte slot index — so the entry (including a deleted one) can always be re-read from the structure.
Variants§
Root
The volume root directory.
Entry
A directory entry: dir_cluster is the parent directory’s first cluster
(or FIXED_ROOT for the FAT12/16 fixed root), index the slot.
Trait Implementations§
impl Copy for FileId
impl Eq for FileId
impl StructuralPartialEq for FileId
Auto Trait Implementations§
impl Freeze for FileId
impl RefUnwindSafe for FileId
impl Send for FileId
impl Sync for FileId
impl Unpin for FileId
impl UnsafeUnpin for FileId
impl UnwindSafe for FileId
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