pub trait ModuleReference:
ValueToString
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn resolve_reference(self: Vc<Self>) -> Vc<ModuleResolveResult>
where Self: Sized;
fn chunking_type(&self) -> Option<ChunkingType>;
// Provided methods
fn binding_usage(&self) -> BindingUsage { ... }
fn source(&self) -> Option<IssueSource> { ... }
}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,
fn chunking_type(&self) -> Option<ChunkingType>
Provided Methods§
fn binding_usage(&self) -> BindingUsage
fn source(&self) -> Option<IssueSource>
Trait Implementations§
Source§impl TraitVtablePrototype for Box<dyn ModuleReference>
impl TraitVtablePrototype for Box<dyn ModuleReference>
Source§impl VcValueTrait for Box<dyn ModuleReference>
impl VcValueTrait for Box<dyn ModuleReference>
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 ModuleReference
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn ModuleReference>> for Box<dyn ModuleReference>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn ModuleReference>
Available on debug-assertions enabled only.
impl Dynamic<Box<dyn ValueToString>> for Box<dyn ModuleReference>
impl Upcast<Box<dyn ModuleReference>> for Box<dyn ModuleReference>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn ModuleReference>
Available on debug-assertions enabled only.
impl Upcast<Box<dyn ValueToString>> for Box<dyn ModuleReference>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn ModuleReference>
Available on debug-assertions enabled only.