pub trait CustomModuleType:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn create_module(
self: Vc<Self>,
source: Vc<Box<dyn Source>>,
module_asset_context: Vc<ModuleAssetContext>,
reference_type: ReferenceType,
) -> Vc<Box<dyn Module>>
where Self: Sized;
fn extend_ecmascript_transforms(
self: Vc<Self>,
preprocess: Vc<EcmascriptInputTransforms>,
main: Vc<EcmascriptInputTransforms>,
postprocess: Vc<EcmascriptInputTransforms>,
) -> Vc<Box<dyn CustomModuleType>>
where Self: Sized;
}Required Methods§
fn create_module(
self: Vc<Self>,
source: Vc<Box<dyn Source>>,
module_asset_context: Vc<ModuleAssetContext>,
reference_type: ReferenceType,
) -> Vc<Box<dyn Module>>where
Self: Sized,
fn extend_ecmascript_transforms(
self: Vc<Self>,
preprocess: Vc<EcmascriptInputTransforms>,
main: Vc<EcmascriptInputTransforms>,
postprocess: Vc<EcmascriptInputTransforms>,
) -> Vc<Box<dyn CustomModuleType>>where
Self: Sized,
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn CustomModuleType>
impl TraitVtablePrototype for Box<dyn CustomModuleType>
Source§impl VcValueTrait for Box<dyn CustomModuleType>
impl VcValueTrait for Box<dyn CustomModuleType>
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 CustomModuleType
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 CustomModuleType>> for Box<dyn CustomModuleType>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn CustomModuleType>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn CustomModuleType>> for Box<dyn CustomModuleType>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn CustomModuleType>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn CustomModuleType>
Available on debug-assertions enabled only.