Trait goods::Format [−][src]
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>> + Send + 'static
[src]
Decoding future.
Required methods
fn decode(
self,
key: K,
bytes: Box<[u8]>,
cache: &Cache<K>
) -> Self::DecodeFuture
[src]
self,
key: K,
bytes: Box<[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: Send + 'static,
F: SimpleFormat<A, K> + 'static,
[src]
A: Send + 'static,
F: SimpleFormat<A, K> + 'static,