pub trait Chunk:
OutputAssetsReference
+ 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 method
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§
fn chunk_items(self: Vc<Self>) -> Vc<ChunkItems>where
Self: Sized,
Trait Implementations§
Source§impl VcValueTrait for Box<dyn Chunk>
impl VcValueTrait for Box<dyn Chunk>
type ValueTrait = dyn Chunk
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
Returns the vtable for an implementation of this trait.
Panics if ValueTypeId does not implement the trait.