pub struct StyleRule<'a>(pub QualifiedRule<'a, SelectorList<'a>, StyleValue<'a>, NestedGroupRule<'a>>);Expand description
Represents a “Style Rule”, such as body { width: 100% }. See also the CSS-OM CSSStyleRule interface.
The Style Rule is comprised of two child nodes: the SelectorList represents the selectors of the rule. Each Declaration will have a StyleValue, and each rule will be a NestedGroupRule.
Tuple Fields§
§0: QualifiedRule<'a, SelectorList<'a>, StyleValue<'a>, NestedGroupRule<'a>>Trait Implementations§
Source§impl<'a> Ord for StyleRule<'a>
impl<'a> Ord for StyleRule<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for StyleRule<'a>
impl<'a> PartialOrd for StyleRule<'a>
Source§impl<'a> ToCursors for StyleRule<'a>
impl<'a> ToCursors for StyleRule<'a>
fn to_cursors(&self, s: &mut impl CursorSink)
impl<'a> Eq for StyleRule<'a>
impl<'a> StructuralPartialEq for StyleRule<'a>
Auto Trait Implementations§
impl<'a> Freeze for StyleRule<'a>
impl<'a> !RefUnwindSafe for StyleRule<'a>
impl<'a> !Send for StyleRule<'a>
impl<'a> !Sync for StyleRule<'a>
impl<'a> Unpin for StyleRule<'a>
impl<'a> !UnwindSafe for StyleRule<'a>
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