Trait ModuleReference

Source
pub trait ModuleReference:
    ValueToString
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn resolve_reference(self: Vc<Self>) -> Vc<ModuleResolveResult>
       where Self: Sized;
}
Expand description

A reference to one or multiple Modules, OutputAssets or other special things. There are a bunch of optional traits that can influence how these references are handled. e. g. ChunkableModuleReference

Required Methods§

Source

fn resolve_reference(self: Vc<Self>) -> Vc<ModuleResolveResult>
where Self: Sized,

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn ModuleReference>

Source§

type ValueTrait = dyn ModuleReference

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

Source§

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

Source§

impl Dynamic<Box<dyn ValueToString>> for Box<dyn ModuleReference>

Source§

impl Upcast<Box<dyn ModuleReference>> for Box<dyn ModuleReference>

Source§

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

Source§

impl Upcast<Box<dyn ValueToString>> for Box<dyn ModuleReference>

Implementors§