Skip to main content

EcmascriptChunkItem

Trait EcmascriptChunkItem 

Source
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§

Source

fn content(self: Vc<Self>) -> Vc<EcmascriptChunkItemContent>
where Self: Sized,

Provided Methods§

Source

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 TraitVtablePrototype for Box<dyn EcmascriptChunkItem>

Source§

const LEN: usize = 2usize

Source§

const NAMES: &[&str]

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl VcValueTrait for Box<dyn EcmascriptChunkItem>

Source§

type ValueTrait = dyn EcmascriptChunkItem

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

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.
Source§

impl Dynamic<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Dynamic<Box<dyn EcmascriptChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Dynamic<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>

Source§

impl Upcast<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Upcast<Box<dyn EcmascriptChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl Upcast<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>

Source§

impl UpcastStrict<Box<dyn ChunkItem>> for Box<dyn EcmascriptChunkItem>

Source§

impl UpcastStrict<Box<dyn OutputAssetsReference>> for Box<dyn EcmascriptChunkItem>

Source§

impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn EcmascriptChunkItem>

Implementors§