DirectoryNode

Trait DirectoryNode 

Source
pub trait DirectoryNode {
    // Required methods
    fn children(&self) -> Vec<Node>;
    fn get_child(&self, name: &str) -> Option<Node>;
}
Expand description

Trait for directory nodes.

Required Methods§

Source

fn children(&self) -> Vec<Node>

Returns the children of the directory.

Source

fn get_child(&self, name: &str) -> Option<Node>

Returns the child with the given name.

Implementors§