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§
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.