Skip to main content

ModuleReference

Trait ModuleReference 

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

Source

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

Source

fn chunking_type(&self) -> Option<ChunkingType>

Provided Methods§

Trait Implementations§

Source§

impl TraitVtablePrototype for Box<dyn ModuleReference>

Source§

const LEN: usize = 1usize

Source§

const DEFAULTS: &[Option<&NativeFunction>]

Source§

impl VcValueTrait for Box<dyn ModuleReference>

Source§

const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>

The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
Source§

type ValueTrait = dyn ModuleReference

Source§

fn get_trait_type_id() -> TraitTypeId

Returns the type id of the trait object.
Source§

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

Source§

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

Available on debug-assertions enabled only.
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>

Available on debug-assertions enabled only.
Source§

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

Source§

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

Available on debug-assertions enabled only.
Source§

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

Implementors§