pub struct PseudoRule { /* private fields */ }Expand description
Represents a CSS pseudo-class or pseudo-element rule attached to a class.
Each rule has a selector suffix (e.g., “:hover”, “::before”, “:focus”)
and a style declaration string. When injected into the DOM, it produces
a rule like .class-name:hover { background: red; }.
Implementations§
Source§impl PseudoRule
impl PseudoRule
pub fn get_selector(&self) -> &String
pub fn set_selector(&mut self, val: String) -> &mut Self
pub fn get_mut_selector(&mut self) -> &mut String
pub fn get_style(&self) -> &String
pub fn set_style(&mut self, val: String) -> &mut Self
pub fn get_mut_style(&mut self) -> &mut String
Trait Implementations§
Source§impl Clone for PseudoRule
impl Clone for PseudoRule
Source§fn clone(&self) -> PseudoRule
fn clone(&self) -> PseudoRule
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 PseudoRule
impl Debug for PseudoRule
Source§impl Default for PseudoRule
impl Default for PseudoRule
Source§fn default() -> PseudoRule
fn default() -> PseudoRule
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PseudoRule
impl RefUnwindSafe for PseudoRule
impl Send for PseudoRule
impl Sync for PseudoRule
impl Unpin for PseudoRule
impl UnsafeUnpin for PseudoRule
impl UnwindSafe for PseudoRule
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