Trait ProtoPathContext

Source
pub trait ProtoPathContext {
    // Required methods
    fn base_path(&self) -> &Path;
    fn asset_io(&self) -> &dyn AssetIo;
    fn extensions(&self) -> &[&'static str];
}
Expand description

The context used when processing a ProtoPath;

Required Methods§

Source

fn base_path(&self) -> &Path

The base path of the prototype being loaded.

Source

fn asset_io(&self) -> &dyn AssetIo

The current AssetIo.

Source

fn extensions(&self) -> &[&'static str]

The allowable extensions as defined in the respective Config.

Implementors§

Source§

impl<'a, 'ctx, T: Prototypical, L: Loader<T>> ProtoPathContext for ProtoLoadContext<'a, 'ctx, T, L>

Source§

impl<'ctx, 'load_ctx, T: Prototypical, L: Loader<T>> ProtoPathContext for ProtoChildBuilder<'ctx, 'load_ctx, T, L>