pub trait CollectingModule:
Module
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn namespace(self: Vc<Self>) -> Vc<RcStr>
where Self: Sized;
fn as_chunk_item(
self: Vc<Self>,
module_graph: Vc<ModuleGraph>,
chunking_context: Vc<Box<dyn ChunkingContext>>,
entry_chunk_group: Vc<Modules>,
) -> Vc<Box<dyn ChunkItem>>
where Self: Sized;
}Expand description
A module that can collect other emitted modules during the collect phase.
Required Methods§
Sourcefn namespace(self: Vc<Self>) -> Vc<RcStr>where
Self: Sized,
fn namespace(self: Vc<Self>) -> Vc<RcStr>where
Self: Sized,
The namespace that this module is interested in
fn as_chunk_item(
self: Vc<Self>,
module_graph: Vc<ModuleGraph>,
chunking_context: Vc<Box<dyn ChunkingContext>>,
entry_chunk_group: Vc<Modules>,
) -> Vc<Box<dyn ChunkItem>>where
Self: Sized,
Trait Implementations§
impl Dynamic<Box<dyn CollectingModule>> for Box<dyn CollectingModule>
impl Dynamic<Box<dyn Module>> for Box<dyn CollectingModule>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn CollectingModule>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn CollectingModule>
impl TraitVtablePrototype for Box<dyn CollectingModule>
impl Upcast<Box<dyn CollectingModule>> for Box<dyn CollectingModule>
impl Upcast<Box<dyn Module>> for Box<dyn CollectingModule>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn CollectingModule>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn Module>> for Box<dyn CollectingModule>
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn CollectingModule>
Available on debug-assertions enabled only.
Source§impl VcValueTrait for Box<dyn CollectingModule>
impl VcValueTrait for Box<dyn CollectingModule>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
type ValueTrait = dyn CollectingModule
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".