amethyst_assets

Trait ProcessableAsset

Source
pub trait ProcessableAsset: Asset + Sized {
    // Required method
    fn process(data: Self::Data) -> Result<ProcessingState<Self>, Error>;
}
Expand description

Defines a way to process asset’s data into the asset. This allows using default Processor system to process assets that implement that type.

Required Methods§

Source

fn process(data: Self::Data) -> Result<ProcessingState<Self>, Error>

Processes asset data into asset during loading.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Asset<Data = T>> ProcessableAsset for T