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
sourcetype FileContent
type FileContent
Content of the node if it is a file.
sourcetype DirectoryContent
type DirectoryContent
Content of the node if it is a directory.
Required Methods
sourcefn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>
fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>
Read the content of the node.