Trait goods::LocalFormat [−][src]
Format trait interprets raw bytes as an asset.
It may also use context for asset instance creation
and LocalCache
to load compound assets.
Associated Types
type DecodeFuture: Future<Output = Result<A>> + 'static
[src]
Decoding future.
Required methods
fn decode_local(
self,
key: K,
bytes: Box<[u8]>,
cache: &LocalCache<K>
) -> Self::DecodeFuture
[src]
self,
key: K,
bytes: Box<[u8]>,
cache: &LocalCache<K>
) -> Self::DecodeFuture
Decode asset intermediate representation from raw data using cache to fetch sub-assets.
Implementors
impl<A, K, F> LocalFormat<A, K> for F where
A: 'static,
F: SimpleFormat<A, K> + 'static,
[src]
A: 'static,
F: SimpleFormat<A, K> + 'static,
type DecodeFuture = Ready<Result<A>>
fn decode_local(
self,
key: K,
bytes: Box<[u8]>,
_cache: &LocalCache<K>
) -> Ready<Result<A>>
[src]
self,
key: K,
bytes: Box<[u8]>,
_cache: &LocalCache<K>
) -> Ready<Result<A>>