pub trait ChunkableModuleReference:
ModuleReference
+ ValueToString
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Provided methods
fn chunking_type(self: Vc<Self>) -> Vc<ChunkingTypeOption>
where Self: Sized { ... }
fn export_usage(self: Vc<Self>) -> Vc<ExportUsage>
where Self: Sized { ... }
}
Expand description
A ModuleReference implementing this trait and returning Some(_) for ChunkableModuleReference::chunking_type are considered as potentially chunkable references. When all Modules of such a reference implement ChunkableModule they are placed in Chunks during chunking. They are even potentially placed in the same Chunk when a chunk type specific interface is implemented.
Provided Methods§
fn chunking_type(self: Vc<Self>) -> Vc<ChunkingTypeOption>where
Self: Sized,
fn export_usage(self: Vc<Self>) -> Vc<ExportUsage>where
Self: Sized,
Trait Implementations§
Source§impl VcValueTrait for Box<dyn ChunkableModuleReference>
impl VcValueTrait for Box<dyn ChunkableModuleReference>
type ValueTrait = dyn ChunkableModuleReference
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.