Trait ModuleIdStrategy

Source
pub trait ModuleIdStrategy:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn get_module_id(self: Vc<Self>, ident: Vc<AssetIdent>) -> Vc<ModuleId>
       where Self: Sized;
}

Required Methods§

Source

fn get_module_id(self: Vc<Self>, ident: Vc<AssetIdent>) -> Vc<ModuleId>
where Self: Sized,

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn ModuleIdStrategy>

Source§

type ValueTrait = dyn ModuleIdStrategy

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

Source§

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

Source§

impl Upcast<Box<dyn ModuleIdStrategy>> for Box<dyn ModuleIdStrategy>

Source§

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

Implementors§