pub struct MatchedRuleInfo {
pub selector: String,
pub specificity: Specificity,
pub origin: Origin,
pub source_order: usize,
pub declarations: Vec<(String, String)>,
}Expand description
One stylesheet rule that matched an element, with its cascade
provenance, for the dynamic DOM matched_rules() inspection getter.
Fields§
§selector: StringThe specific selector (of the rule’s selector list) that matched, serialized back to CSS text.
specificity: SpecificitySelectors-4 specificity of the matched selector.
origin: OriginCascade origin (user-agent skin vs author sheet).
source_order: usizeSource order of the rule within the stylesheet.
declarations: Vec<(String, String)>The rule’s declarations as (property, value) pairs (raw,
var()-unresolved), in source order.
Trait Implementations§
Source§impl Clone for MatchedRuleInfo
impl Clone for MatchedRuleInfo
Source§fn clone(&self) -> MatchedRuleInfo
fn clone(&self) -> MatchedRuleInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MatchedRuleInfo
impl RefUnwindSafe for MatchedRuleInfo
impl Send for MatchedRuleInfo
impl Sync for MatchedRuleInfo
impl Unpin for MatchedRuleInfo
impl UnsafeUnpin for MatchedRuleInfo
impl UnwindSafe for MatchedRuleInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.