pub trait SimpleAsset: Asset {
    fn decode(bytes: Box<[u8]>) -> Result<Self::Decoded, Self::DecodeError>;
}
Expand description

Simple assets have no dependencies. For this reason their decode function is always sync and do not take Loader argument.

Required methods

Decode asset synchronously.

Implementors