pub struct MmiDir { /* private fields */ }
Expand description
Lazily computed directory that contains subfiles and directories relevant to the task’s memory management information.
Implementations§
Trait Implementations§
source§impl Directory for MmiDir
impl Directory for MmiDir
source§fn insert(
&mut self,
_node: FileOrDir
) -> Result<Option<FileOrDir>, &'static str>
fn insert( &mut self, _node: FileOrDir ) -> Result<Option<FileOrDir>, &'static str>
Inserts the given new file or directory into this directory.
If an existing node has the same name, that node is replaced and returned. Read more
source§fn get(&self, child_name: &str) -> Option<FileOrDir>
fn get(&self, child_name: &str) -> Option<FileOrDir>
Gets either the file or directory in this
Directory
on its name.source§fn remove(&mut self, _: &FileOrDir) -> Option<FileOrDir>
fn remove(&mut self, _: &FileOrDir) -> Option<FileOrDir>
Removes a file or directory from this directory and returns it if found.
Also, the returned node’s parent directory reference is cleared. Read more
source§impl FsNode for MmiDir
impl FsNode for MmiDir
source§fn get_absolute_path(&self) -> String
fn get_absolute_path(&self) -> String
Recursively gets the absolute pathname as a String
source§fn get_parent_dir(&self) -> Option<DirRef>
fn get_parent_dir(&self) -> Option<DirRef>
Returns the parent directory of the current node.
source§fn set_parent_dir(&mut self, _: WeakDirRef)
fn set_parent_dir(&mut self, _: WeakDirRef)
Sets this node’s parent directory.
This is useful for ensuring correctness when inserting or removing
files or directories from their parent directory.
Auto Trait Implementations§
impl !RefUnwindSafe for MmiDir
impl Send for MmiDir
impl Sync for MmiDir
impl Unpin for MmiDir
impl !UnwindSafe for MmiDir
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