librashader_pack

Trait LoadableResource

source
pub trait LoadableResource {
    type ResourceType;
    type Error;

    // Required method
    fn load(path: &Path) -> Result<Self::ResourceType, Self::Error>;
}
Expand description

Trait for a resource that is loadable from disk.

Required Associated Types§

source

type ResourceType

The type of the resource.

source

type Error

The error type when loading the resource.

Required Methods§

source

fn load(path: &Path) -> Result<Self::ResourceType, Self::Error>

Load the resource from the path.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl LoadableResource for PassMeta

source§

impl LoadableResource for TextureMeta

Implementors§