pub trait ImportMappingReplacement:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn replace(
self: Vc<Self>,
capture: Vc<Pattern>,
) -> Vc<ReplacedImportMapping>
where Self: Sized;
fn result(
self: Vc<Self>,
lookup_path: Vc<FileSystemPath>,
request: Vc<Request>,
) -> Vc<ImportMapResult>
where Self: Sized;
}
Required Methods§
fn replace(self: Vc<Self>, capture: Vc<Pattern>) -> Vc<ReplacedImportMapping>where
Self: Sized,
fn result(
self: Vc<Self>,
lookup_path: Vc<FileSystemPath>,
request: Vc<Request>,
) -> Vc<ImportMapResult>where
Self: Sized,
Trait Implementations§
Source§impl VcValueTrait for Box<dyn ImportMappingReplacement>
impl VcValueTrait for Box<dyn ImportMappingReplacement>
type ValueTrait = dyn ImportMappingReplacement
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.