Trait build_fs_tree::Node [−][src]
pub trait Node { type FileContent; type DirectoryContent; fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>; }
Expand description
Node of a filesystem tree.
Associated Types
type FileContent
[src]
type FileContent
[src]Content of the node if it is a file.
type DirectoryContent
[src]
type DirectoryContent
[src]Content of the node if it is a directory.
Required methods
fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>
[src]
fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>
[src]Read the content of the node.
Implementors
impl<Path, FileContent> Node for FileSystemTree<Path, FileContent> where
Path: Ord,
[src]
impl<Path, FileContent> Node for FileSystemTree<Path, FileContent> where
Path: Ord,
[src]type FileContent = FileContent
type DirectoryContent = BTreeMap<Path, Self>
fn read(self) -> NodeContent<FileContent, Self::DirectoryContent>
[src]
impl<Path, FileContent> Node for MergeableFileSystemTree<Path, FileContent> where
Path: Ord,
[src]
impl<Path, FileContent> Node for MergeableFileSystemTree<Path, FileContent> where
Path: Ord,
[src]