Struct asset_lru::FilesystemVfs[][src]

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

A VFS which is backed by a given root directory.

This handles the rather tricky path cases around Windows and Linux differences, and makes it so that you can and should use keys like /b/c (behavior with \ is undefined). Additionally, it makes a best effort to disallow a user to use relative paths to escape the root directory, primarily as a measure to detect bugs.

Implementations

Run the file opening logic on the VFS, so that this can be reused for normal file access at the same time.

Trait Implementations

Formats the value using the given formatter. Read more

Open a file.

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.