pub trait MergeableModule:
Module
+ Asset
+ Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn merge(
self: Vc<Self>,
modules: Vc<MergeableModulesExposed>,
entry_points: Vc<MergeableModules>,
) -> Vc<Box<dyn ChunkableModule>>
where Self: Sized;
// Provided method
fn is_mergeable(self: Vc<Self>) -> Vc<bool>
where Self: Sized { ... }
}
Required Methods§
Sourcefn merge(
self: Vc<Self>,
modules: Vc<MergeableModulesExposed>,
entry_points: Vc<MergeableModules>,
) -> Vc<Box<dyn ChunkableModule>>where
Self: Sized,
fn merge(
self: Vc<Self>,
modules: Vc<MergeableModulesExposed>,
entry_points: Vc<MergeableModules>,
) -> Vc<Box<dyn ChunkableModule>>where
Self: Sized,
Create a new module representing the merged content of the given modules
.
Group entry points are not referenced by any other module in the group. This list is needed because the merged module is created by recursively inlining modules when they are imported, but this process has to start somewhere (= with these entry points).
Provided Methods§
Trait Implementations§
Source§impl VcValueTrait for Box<dyn MergeableModule>
impl VcValueTrait for Box<dyn MergeableModule>
type ValueTrait = dyn MergeableModule
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
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.