Trait CustomModuleType

Source
pub trait CustomModuleType:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    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;
}

Required Methods§

Source

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,

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn CustomModuleType>

Source§

type ValueTrait = dyn CustomModuleType

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 CustomModuleType>> for Box<dyn CustomModuleType>

Source§

impl Dynamic<Box<dyn ValueDebug>> for Box<dyn CustomModuleType>

Source§

impl Upcast<Box<dyn CustomModuleType>> for Box<dyn CustomModuleType>

Source§

impl Upcast<Box<dyn ValueDebug>> for Box<dyn CustomModuleType>

Implementors§