[][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

impl<A, K> LeafFormat<A, K> for JsonFormat where
    A: Asset,
    A::Repr: DeserializeOwned,
    A::Error: From<Error>, 
[src]

impl<A, K> LeafFormat<A, K> for RonFormat where
    A: Asset,
    A::Repr: DeserializeOwned,
    A::Error: From<Error>, 
[src]

impl<A, K> LeafFormat<A, K> for YamlFormat where
    A: Asset,
    A::Repr: DeserializeOwned,
    A::Error: From<Error>, 
[src]

Loading content...