pub trait FeatureMetadata: Sized {
// Required method
fn feature_metadata(&self) -> ConditionalFeature;
// Provided methods
fn feature_type() -> FeatureType { ... }
fn evaluator() -> FeatureEvaluator { ... }
fn property_group() -> PropertyGroup { ... }
}Required Methods§
Sourcefn feature_metadata(&self) -> ConditionalFeature
fn feature_metadata(&self) -> ConditionalFeature
Extracts structured instance data from this parsed feature node.
Provided Methods§
Sourcefn feature_type() -> FeatureType
fn feature_type() -> FeatureType
Which conditional rule context this feature belongs to.
Sourcefn evaluator() -> FeatureEvaluator
fn evaluator() -> FeatureEvaluator
What kind of value this feature evaluates against.
Sourcefn property_group() -> PropertyGroup
fn property_group() -> PropertyGroup
Which CSS specification module this feature belongs to.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".