pub struct DefaultResolver;
Expand description
The default resolver. This simply parses path strings using Path::new()
Directly resolves paths using Rust’s built-in
Path
type.
let resolver = DefaultResolver;
let path = resolver.resolve("/home/user/assets/test.png").unwrap();
assert_eq!(path.to_str().unwrap(), "/home/user/assets/test.png");
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.