Struct asset_resolver::DefaultResolver[][src]

pub struct DefaultResolver;
Expand description

The default resolver. This simply parses path strings using Path::new()

Trait Implementations

Directly resolves paths using Rust’s built-in Path type.

Example
let resolver = DefaultResolver;
let path = resolver.resolve("/home/user/assets/test.png").unwrap();
assert_eq!(path.to_str().unwrap(), "/home/user/assets/test.png");

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.