pub trait EcmascriptAnalyzable:
Module
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn analyze(self: Vc<Self>) -> Vc<AnalyzeEcmascriptModuleResult>
where Self: Sized;
fn module_content_without_analysis(
self: Vc<Self>,
generate_source_map: bool,
) -> Vc<EcmascriptModuleContent>
where Self: Sized;
fn module_content_options(
self: Vc<Self>,
chunking_context: Vc<Box<dyn ChunkingContext>>,
async_module_info: Option<Vc<AsyncModuleInfo>>,
) -> Vc<EcmascriptModuleContentOptions>
where Self: Sized;
}Required Methods§
fn analyze(self: Vc<Self>) -> Vc<AnalyzeEcmascriptModuleResult>where
Self: Sized,
Sourcefn module_content_without_analysis(
self: Vc<Self>,
generate_source_map: bool,
) -> Vc<EcmascriptModuleContent>where
Self: Sized,
fn module_content_without_analysis(
self: Vc<Self>,
generate_source_map: bool,
) -> Vc<EcmascriptModuleContent>where
Self: Sized,
Generates module contents without an analysis pass. This is useful for transforming code that is not a module, e.g. runtime code.
fn module_content_options(
self: Vc<Self>,
chunking_context: Vc<Box<dyn ChunkingContext>>,
async_module_info: Option<Vc<AsyncModuleInfo>>,
) -> Vc<EcmascriptModuleContentOptions>where
Self: Sized,
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn EcmascriptAnalyzable>
impl TraitVtablePrototype for Box<dyn EcmascriptAnalyzable>
Source§impl VcValueTrait for Box<dyn EcmascriptAnalyzable>
impl VcValueTrait for Box<dyn EcmascriptAnalyzable>
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 EcmascriptAnalyzable
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 EcmascriptAnalyzable>> for Box<dyn EcmascriptAnalyzable>
impl Dynamic<Box<dyn Module>> for Box<dyn EcmascriptAnalyzable>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn EcmascriptAnalyzable>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn EcmascriptAnalyzable>> for Box<dyn EcmascriptAnalyzable>
impl Upcast<Box<dyn Module>> for Box<dyn EcmascriptAnalyzable>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn EcmascriptAnalyzable>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn Module>> for Box<dyn EcmascriptAnalyzable>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn EcmascriptAnalyzable>
Available on debug-assertions enabled only.