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
Groups 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>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated at program load by
#[ctor::ctor]
functions emitted by each #[turbo_tasks::value_impl] expansion. Read moretype ValueTrait = dyn Chunk
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn Chunk>> for Box<dyn Chunk>
impl Dynamic<Box<dyn OutputAssetsReference>> for Box<dyn Chunk>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn Chunk>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn Chunk>> for Box<dyn Chunk>
impl Upcast<Box<dyn OutputAssetsReference>> for Box<dyn Chunk>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn Chunk>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn OutputAssetsReference>> for Box<dyn Chunk>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn Chunk>
Available on debug-assertions enabled only.