Struct memofs::InMemoryFs[][src]

pub struct InMemoryFs { /* fields omitted */ }
Expand description

In-memory filesystem that can be used as a VFS backend.

Internally reference counted to enable giving a copy to Vfs and keeping the original to mutate the filesystem’s state with.

Implementations

Create a new empty InMemoryFs.

Load a VfsSnapshot into a subtree of the in-memory filesystem.

This function will return an error if the operations required to apply the snapshot result in errors, like trying to create a file inside a file.

Raises a filesystem change event.

If this InMemoryFs is being used as the backend of a Vfs, then any listeners be notified of this event.

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

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.