Trait build_fs_tree::Node
source · [−]pub trait Node {
type FileContent;
type DirectoryContent;
fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>;
}
Expand description
Node of a filesystem tree.
Required Associated Types
type FileContent
type FileContent
Content of the node if it is a file.
Content of the node if it is a directory.
Required Methods
fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>
fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>
Read the content of the node.