pub struct MatchedRule {
pub sheet: String,
pub line: u32,
pub column: u32,
pub selector: String,
pub specificity: [u32; 3],
pub declarations: Vec<InspectedDeclaration>,
}Expand description
One rule that matched.
Fields§
§sheet: StringThe name the sheet was handed in under.
line: u32The line the rule begins on, counting from 1.
column: u32The column it begins at, counting from 1.
selector: StringThe selector as CSS writes it. For a margin box, the @page
prelude.
specificity: [u32; 3]Its specificity, as ids, then classes, then element names. For
a margin box, as a page name, then :first or :blank, then
:left or :right.
declarations: Vec<InspectedDeclaration>Its declarations, in the order they were written.
Trait Implementations§
Source§impl Clone for MatchedRule
impl Clone for MatchedRule
Source§fn clone(&self) -> MatchedRule
fn clone(&self) -> MatchedRule
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 moreSource§impl Debug for MatchedRule
impl Debug for MatchedRule
Source§impl PartialEq for MatchedRule
impl PartialEq for MatchedRule
Source§impl Serialize for MatchedRule
impl Serialize for MatchedRule
impl StructuralPartialEq for MatchedRule
Auto Trait Implementations§
impl Freeze for MatchedRule
impl RefUnwindSafe for MatchedRule
impl Send for MatchedRule
impl Sync for MatchedRule
impl Unpin for MatchedRule
impl UnsafeUnpin for MatchedRule
impl UnwindSafe for MatchedRule
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> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.