pub enum Inode<T> {
Directory(Box<Directory<T>>),
Leaf(LeafId, PhantomData<T>),
}Expand description
A filesystem inode representing either a directory or a leaf node.
Variants§
Directory(Box<Directory<T>>)
A directory inode.
Leaf(LeafId, PhantomData<T>)
A leaf inode, referencing an entry in the leaves table by index.
The PhantomData ties the type parameter T to the enum without
requiring it to appear directly (since LeafId is type-erased).
Use Inode::leaf to construct this variant.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Inode<T>
impl<T> RefUnwindSafe for Inode<T>where
T: RefUnwindSafe,
impl<T> Send for Inode<T>where
T: Send,
impl<T> Sync for Inode<T>where
T: Sync,
impl<T> Unpin for Inode<T>where
T: Unpin,
impl<T> UnsafeUnpin for Inode<T>
impl<T> UnwindSafe for Inode<T>where
T: UnwindSafe + RefUnwindSafe,
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