pub trait TrivialAsset: Clone + Sized + Send + Sync + 'static {
    type Error: Error + Send + Sync + 'static;
    fn name() -> &'static str;
fn decode(bytes: Box<[u8]>) -> Result<Self, Self::Error>; }
Expand description

Trivial assets have no dependencies and do not require building. They are decoded directly from bytes. And thus they implement AssetBuild<B> for any B.

Associated Types

Required methods

Asset name.

Decode asset directly.

Implementors