Trait 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,

Source§

type FileContent = FileContent

Source§

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

Source§

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

Source§

type FileContent = FileContent

Source§

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