Skip to main content

ModuleReference

Trait ModuleReference 

Source
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§

Source

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

Provided Methods§

Source

fn chunking_type(self: Vc<Self>) -> Vc<ChunkingTypeOption>
where Self: Sized,

Source

fn binding_usage(self: Vc<Self>) -> Vc<BindingUsage>
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>

Source§

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

Source§

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

Implementors§