Trait build_fs_tree::Build [−][src]
Applying FileSystemTree to the filesystem.
Generic parameters:
Name: Identification of a child item.Error: Error type used by the other functions.
Associated Types
Loading content...Required methods
fn join(prefix: &Self::Path, name: &Name) -> Self::Path[src]
Add prefix to the root of the tree.
fn write_file(
path: &Self::Path,
content: &Self::FileContent
) -> Result<(), Error>[src]
path: &Self::Path,
content: &Self::FileContent
) -> Result<(), Error>
Write content to a file.
fn create_dir(path: &Self::Path) -> Result<(), Error>[src]
Create a directory at root.
Provided methods
fn build(self, path: &Self::Path) -> Result<(), BuildError<Self::Path, Error>>[src]
Build the tree into the filesystem.
Implementors
impl<Name, FileContent> Build<Name, Error> for FileSystemTree<Name, FileContent> where
Name: AsRef<Path> + Ord,
FileContent: AsRef<[u8]>, [src]
Name: AsRef<Path> + Ord,
FileContent: AsRef<[u8]>,
type Path = PathBuf
fn join(prefix: &Self::Path, name: &Name) -> Self::Path[src]
fn write_file(
path: &Self::Path,
content: &Self::FileContent
) -> Result<(), Error>[src]
path: &Self::Path,
content: &Self::FileContent
) -> Result<(), Error>
fn create_dir(path: &Self::Path) -> Result<(), Error>[src]
impl<Name, FileContent> Build<Name, Error> for MergeableFileSystemTree<Name, FileContent> where
Name: AsRef<Path> + Ord,
FileContent: AsRef<[u8]>, [src]
Name: AsRef<Path> + Ord,
FileContent: AsRef<[u8]>,