[][src]Trait goods::LeafFormat

pub trait LeafFormat<A: Asset, K>: Send + 'static {
    fn decode(self, bytes: Vec<u8>) -> Result<A::Repr, A::Error>;
}

Trait for formats that loads assets immediately.

Required methods

fn decode(self, bytes: Vec<u8>) -> Result<A::Repr, A::Error>

Loads asset from raw data using asset context and cache.

Loading content...

Implementors

Loading content...