pub trait ModuleReference:
ValueToString
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn resolve_reference(self: Vc<Self>) -> Vc<ModuleResolveResult>
where Self: Sized;
// Provided methods
fn chunking_type(self: Vc<Self>) -> Vc<ChunkingTypeOption>
where Self: Sized { ... }
fn binding_usage(self: Vc<Self>) -> Vc<BindingUsage>
where Self: Sized { ... }
}Expand description
A reference to one or multiple Modules, OutputAssets or other special things.
Required Methods§
fn resolve_reference(self: Vc<Self>) -> Vc<ModuleResolveResult>where
Self: Sized,
Provided Methods§
fn chunking_type(self: Vc<Self>) -> Vc<ChunkingTypeOption>where
Self: Sized,
fn binding_usage(self: Vc<Self>) -> Vc<BindingUsage>where
Self: Sized,
Trait Implementations§
Source§impl VcValueTrait for Box<dyn ModuleReference>
impl VcValueTrait for Box<dyn ModuleReference>
type ValueTrait = dyn ModuleReference
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.