pub struct StyleRule {
pub selector: Selector,
pub style: Style,
}Expand description
A single style rule pairing a selector with its declarations.
Fields§
§selector: SelectorThe selector that determines which components this rule applies to.
style: StyleThe style properties to apply.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyleRule
impl RefUnwindSafe for StyleRule
impl Send for StyleRule
impl Sync for StyleRule
impl Unpin for StyleRule
impl UnsafeUnpin for StyleRule
impl UnwindSafe for StyleRule
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