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§

Implementors§