Trait build_fs_tree::Node

source ·
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§

source

type FileContent

Content of the node if it is a file.

source

type DirectoryContent

Content of the node if it is a directory.

Required Methods§

source

fn read(self) -> NodeContent<Self::FileContent, Self::DirectoryContent>

Read the content of the node.

Implementors§

source§

impl<Path, FileContent> Node for FileSystemTree<Path, FileContent>
where Path: Ord,

§

type FileContent = FileContent

§

type DirectoryContent = BTreeMap<Path, FileSystemTree<Path, FileContent>>

source§

impl<Path, FileContent> Node for MergeableFileSystemTree<Path, FileContent>
where Path: Ord,

§

type FileContent = FileContent

§

type DirectoryContent = BTreeMap<Path, MergeableFileSystemTree<Path, FileContent>>