Struct lotus_lib::toc::DirectoryNode
source · pub struct DirectoryNode { /* private fields */ }Implementations§
source§impl DirectoryNode
impl DirectoryNode
pub fn new(name: String, parent_node: Rc<RefCell<DirectoryNode>>) -> Self
pub fn root() -> Self
pub fn children_directories(&self) -> Vec<Rc<RefCell<DirectoryNode>>>
pub fn children_files(&self) -> Vec<Rc<RefCell<FileNode>>>
pub fn get_child_directory<T: Into<String>>( &self, name: T ) -> Option<Rc<RefCell<DirectoryNode>>>
pub fn get_child_file<T: Into<String>>( &self, name: T ) -> Option<Rc<RefCell<FileNode>>>
Trait Implementations§
source§impl Clone for DirectoryNode
impl Clone for DirectoryNode
source§fn clone(&self) -> DirectoryNode
fn clone(&self) -> DirectoryNode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more