Trait ChunkableModule

Source
pub trait ChunkableModule:
    Module
    + Asset
    + Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn as_chunk_item(
        self: Vc<Self>,
        module_graph: Vc<ModuleGraph>,
        chunking_context: Vc<Box<dyn ChunkingContext>>,
    ) -> Vc<Box<dyn ChunkItem>>
       where Self: Sized;
}
Expand description

A Module that can be converted into a Chunk.

Required Methods§

Source

fn as_chunk_item( self: Vc<Self>, module_graph: Vc<ModuleGraph>, chunking_context: Vc<Box<dyn ChunkingContext>>, ) -> Vc<Box<dyn ChunkItem>>
where Self: Sized,

Trait Implementations§

Source§

impl VcValueTrait for Box<dyn ChunkableModule>

Source§

type ValueTrait = dyn ChunkableModule

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 Asset>> for Box<dyn ChunkableModule>

Source§

impl Dynamic<Box<dyn ChunkableModule>> for Box<dyn ChunkableModule>

Source§

impl Dynamic<Box<dyn Module>> for Box<dyn ChunkableModule>

Source§

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

Source§

impl Upcast<Box<dyn Asset>> for Box<dyn ChunkableModule>

Source§

impl Upcast<Box<dyn ChunkableModule>> for Box<dyn ChunkableModule>

Source§

impl Upcast<Box<dyn Module>> for Box<dyn ChunkableModule>

Source§

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

Implementors§