pub trait EcmascriptChunkItem:
ChunkItem
+ OutputAssetsReference
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn content(self: Vc<Self>) -> Vc<EcmascriptChunkItemContent>
where Self: Sized;
// Provided method
fn content_with_async_module_info(
self: Vc<Self>,
_async_module_info: Option<Vc<AsyncModuleInfo>>,
_estimated: bool,
) -> Vc<EcmascriptChunkItemContent>
where Self: Sized { ... }
}Required Methods§
Provided Methods§
Sourcefn content_with_async_module_info(
self: Vc<Self>,
_async_module_info: Option<Vc<AsyncModuleInfo>>,
_estimated: bool,
) -> Vc<EcmascriptChunkItemContent>where
Self: Sized,
fn content_with_async_module_info(
self: Vc<Self>,
_async_module_info: Option<Vc<AsyncModuleInfo>>,
_estimated: bool,
) -> Vc<EcmascriptChunkItemContent>where
Self: Sized,
Fetches the content of the chunk item with async module info.
When estimated is true, it’s ok to provide an estimated content, since it’s only used for
compute the chunking. When estimated is true, this function should not invoke other
chunking operations that would cause cycles.
Trait Implementations§
Source§impl VcValueTrait for Box<dyn EcmascriptChunkItem>
impl VcValueTrait for Box<dyn EcmascriptChunkItem>
type ValueTrait = dyn EcmascriptChunkItem
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.