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

An ephemeral in-memory file system, intended mainly for unit tests

Implementations

Create a new in-memory filesystem

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Iterates over all entries of this directory path

Creates the directory at this path Read more

Opens the file at this path for reading

Creates a file at this path for writing

Opens the file at this path for appending

Returns the file metadata for the file at this path

Returns true if a file or directory at path exists, false otherwise

Removes the file at this path

Removes the directory at this path

Copies the src path to the destination path within the same filesystem (optional)

Moves the src path to the destination path within the same filesystem (optional)

Moves the src directory to the destination path within the same filesystem (optional)

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

Performs the conversion.

Performs the conversion.

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.