pub trait WebpackLoaderBuiltinConditionSet:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required method
fn match_condition(
&self,
condition: &str,
) -> WebpackLoaderBuiltinConditionSetMatch;
}
Expand description
A collection of framework-provided conditions for user (or framework) specified loader rules
(WebpackRules
) to match against.
Required Methods§
Sourcefn match_condition(
&self,
condition: &str,
) -> WebpackLoaderBuiltinConditionSetMatch
fn match_condition( &self, condition: &str, ) -> WebpackLoaderBuiltinConditionSetMatch
Determines if the string representation of this condition is in the set. If it’s not valid, an issue will be emitted as a collectible.
Trait Implementations§
Source§impl VcValueTrait for Box<dyn WebpackLoaderBuiltinConditionSet>
impl VcValueTrait for Box<dyn WebpackLoaderBuiltinConditionSet>
type ValueTrait = dyn WebpackLoaderBuiltinConditionSet
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.