pub struct Directory { /* private fields */ }
Expand description
This is the body contained in directory blocks.
Implementations§
source§impl Directory
impl Directory
pub fn new() -> Directory
pub fn add_file(&mut self, name: String, inode: Inode) -> Result<()>
pub fn num_entries(&self) -> usize
pub fn entries(&self) -> impl Iterator<Item = (&str, &DirEntry)>
pub fn entry(&self, name: &str) -> Option<&DirEntry>
pub fn contains_entry(&self, name: &str) -> bool
pub fn insert_entry( &mut self, name: String, entry: DirEntry ) -> Option<DirEntry>
pub fn remove_entry(&mut self, name: &str) -> Option<DirEntry>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Directory
impl<'de> Deserialize<'de> for Directory
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Directory> for Directory
impl PartialEq<Directory> for Directory
impl StructuralPartialEq for Directory
Auto Trait Implementations§
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin 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