ChunkableModuleReference

Trait ChunkableModuleReference 

Source
pub trait ChunkableModuleReference:
    ModuleReference
    + ValueToString
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Provided methods
    fn chunking_type(self: Vc<Self>) -> Vc<ChunkingTypeOption>
       where Self: Sized { ... }
    fn export_usage(self: Vc<Self>) -> Vc<ExportUsage>
       where Self: Sized { ... }
}
Expand description

A ModuleReference implementing this trait and returning Some(_) for ChunkableModuleReference::chunking_type are considered as potentially chunkable references. When all Modules of such a reference implement ChunkableModule they are placed in Chunks during chunking. They are even potentially placed in the same Chunk when a chunk type specific interface is implemented.

Provided Methods§

Source

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

Source

fn export_usage(self: Vc<Self>) -> Vc<ExportUsage>
where Self: Sized,

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn ChunkableModuleReference>

Source§

type ValueTrait = dyn ChunkableModuleReference

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

Source§

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

Source§

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

Source§

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

Source§

impl Upcast<Box<dyn ChunkableModuleReference>> for Box<dyn ChunkableModuleReference>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§