Skip to main content

AssetPathSpecProvider

Trait AssetPathSpecProvider 

Source
pub trait AssetPathSpecProvider {
    // Required method
    fn base_path(&self) -> Cow<'static, str>;

    // Provided method
    fn extension(&self) -> Option<&'static str> { ... }
}
Expand description

An AssetResolver using a base_path and an optional file extension.

Required Methods§

Source

fn base_path(&self) -> Cow<'static, str>

Provided Methods§

Source

fn extension(&self) -> Option<&'static str>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§