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>,
part: Option<ModulePart>,
) -> 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>,
part: Option<ModulePart>,
) -> 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 VcValueTrait for Box<dyn CustomModuleType>
impl VcValueTrait for Box<dyn CustomModuleType>
type ValueTrait = dyn CustomModuleType
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.