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

The VirtualFileSystem is a struct that manages a set of files and their content. Changes to the instance are logged, they can be be retrieved via the take_changes method.

Implementations§

Returns true if there are changes that can be processed.

Returns the changes performed on the instance since the last time this function was called or since the creation of the instance.

Returns the FileId of the file at the specified path or None if there is no data for that file.

Returns the path of the file with the specified FileId.

Returns the content of the file with the specified FileId.

Returns an iterator that iterates all FileIds and their path.

Notifies this instance that the contents of the specified file has changed to something else. Returns true if the new contents is actually different.

Trait Implementations§

Returns the “default value” for a type. 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 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.