pub trait Chunk:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn ident(self: Vc<Self>) -> Vc<AssetIdent>
where Self: Sized;
fn chunking_context(self: Vc<Self>) -> Vc<Box<dyn ChunkingContext>>
where Self: Sized;
// Provided methods
fn references(self: Vc<Self>) -> Vc<OutputAssets>
where Self: Sized { ... }
fn chunk_items(self: Vc<Self>) -> Vc<ChunkItems>
where Self: Sized { ... }
}
Expand description
A Chunk group chunk items together into something that will become an [OutputAsset]. It usually contains multiple chunk items.
Required Methods§
fn ident(self: Vc<Self>) -> Vc<AssetIdent>where
Self: Sized,
fn chunking_context(self: Vc<Self>) -> Vc<Box<dyn ChunkingContext>>where
Self: Sized,
Provided Methods§
Sourcefn references(self: Vc<Self>) -> Vc<OutputAssets>where
Self: Sized,
fn references(self: Vc<Self>) -> Vc<OutputAssets>where
Self: Sized,
Other [OutputAsset]s referenced from this Chunk.