Trait EcmascriptChunkItem

Source
pub trait EcmascriptChunkItem:
    ChunkItem
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn content(self: Vc<Self>) -> Vc<EcmascriptChunkItemContent>
       where Self: Sized;

    // Provided methods
    fn content_with_async_module_info(
        self: Vc<Self>,
        _async_module_info: Option<Vc<AsyncModuleInfo>>,
    ) -> Vc<EcmascriptChunkItemContent>
       where Self: Sized { ... }
    fn need_async_module_info(self: Vc<Self>) -> Vc<bool>
       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>>, ) -> Vc<EcmascriptChunkItemContent>
where Self: Sized,

Source

fn need_async_module_info(self: Vc<Self>) -> Vc<bool>
where Self: Sized,

Specifies which availability information the chunk item needs for code generation

Trait Implementations§

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

Implementors§