pub trait Node {
type FileContent;
type DirectoryContent;
// Required method
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.