#[repr(C)]pub struct Directory {
pub inum: u16,
pub name: [u8; 14],
}Fields§
§inum: u16§name: [u8; 14]Implementations§
Source§impl Directory
impl Directory
pub const SIZE: usize
pub const fn new_empty() -> Self
pub fn as_bytes(&self) -> &[u8]
Sourcepub fn is_empty(
inode: &Inode,
inner: &mut SleepLockGuard<'_, InodeInner>,
) -> bool
pub fn is_empty( inode: &Inode, inner: &mut SleepLockGuard<'_, InodeInner>, ) -> bool
Checks whether the directory is empty (only contains . and ..).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnsafeUnpin for Directory
impl UnwindSafe for Directory
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