pub struct MatchedRuleView {
pub selector: String,
pub specificity: (u32, u32, u32),
pub source: String,
pub source_order: usize,
pub declarations: Vec<(String, String)>,
}Expand description
One matched stylesheet rule with cascade provenance, for
matched_rules().
Fields§
§selector: StringThe matched selector, serialized to CSS text.
specificity: (u32, u32, u32)Selectors-4 specificity (a, b, c).
source: String"author" or "user-agent".
source_order: usizeSource order within the stylesheet.
declarations: Vec<(String, String)>The rule’s declarations as (property, value) pairs.
Trait Implementations§
Source§impl Clone for MatchedRuleView
impl Clone for MatchedRuleView
Source§fn clone(&self) -> MatchedRuleView
fn clone(&self) -> MatchedRuleView
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 MatchedRuleView
impl RefUnwindSafe for MatchedRuleView
impl Send for MatchedRuleView
impl Sync for MatchedRuleView
impl Unpin for MatchedRuleView
impl UnsafeUnpin for MatchedRuleView
impl UnwindSafe for MatchedRuleView
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.