pub struct MediaRule { /* private fields */ }Expand description
Represents a CSS @media rule attached to a class.
Each media rule has a query string (e.g., “(max-width: 767px)”)
and a style declaration string. When injected into the DOM, it produces
a rule like @media (max-width: 767px) { .class-name { font-size: 14px; } }.
Implementations§
Trait Implementations§
impl Eq for MediaRule
impl StructuralPartialEq for MediaRule
Auto Trait Implementations§
impl Freeze for MediaRule
impl RefUnwindSafe for MediaRule
impl Send for MediaRule
impl Sync for MediaRule
impl Unpin for MediaRule
impl UnsafeUnpin for MediaRule
impl UnwindSafe for MediaRule
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