pub struct FakeFileSystem { /* private fields */ }
Expand description

An in-memory file system.

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Returns the current working directory. This is based on std::env::current_dir. Read more
Updates the current working directory. This is based on std::env::set_current_dir. Read more
Determines whether the path exists and points to a directory.
Determines whether the path exists and points to a file.
Creates a new directory. This is based on std::fs::create_dir. Read more
Recursively creates a directory and any missing parents. This is based on std::fs::create_dir. Read more
Removes an empty directory. This is based on std::fs::remove_dir. Read more
Removes a directory and any child files or directories. This is based on std::fs::remove_dir_all. Read more
Returns an iterator over the entries in a directory. This is based on std::fs::read_dir. Read more
Writes buf to a new file at path. Read more
Writes buf to a new or existing file at buf. This will overwrite any contents that already exist. Read more
Writes buf to an existing file at buf. This will overwrite any contents that already exist. Read more
Returns the contents of path. Read more
Returns the contents of path as a string. Read more
Removes the file at path. This is based on std::fs::remove_file. Read more
Copies the file at path from to the path to. This is based on std::fs::copy. Read more
Renames a file or directory. If both from and to are files, to will be replaced. Based on std::fs::rename. Read more
Returns true if path is a readonly file. Read more
Sets or unsets the readonly flag of path. Read more
Returns the length of the node at the path or 0 if the node does not exist. Read more
Creates a new temporary directory.
Returns the current mode bits of path. Read more
Sets the mode bits of path. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.