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§
impl Dynamic<Box<dyn CustomModuleType>> for Box<dyn CustomModuleType>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn CustomModuleType>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn CustomModuleType>
impl TraitVtablePrototype for Box<dyn CustomModuleType>
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.
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 by [crate::value_type::register_all_trait_methods] Read more
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".