[−][src]Trait goods::Format
Format trait interprets raw bytes as an asset.
It may also use context for asset instance creation
and Cache
to load compound assets.
Associated Types
type DecodeFuture: Future<Output = Result<A::Repr, A::Error>> + Send + 'static
Asynchronous result produced by the format loading.
Required methods
fn decode(self, bytes: Vec<u8>, cache: &Cache<K>) -> Self::DecodeFuture
Decode asset intermediate representation from raw data using cache to fetch sub-assets.
Implementors
impl<A, K, F> Format<A, K> for F where
A: Asset,
F: LeafFormat<A, K>,
[src]
A: Asset,
F: LeafFormat<A, K>,