pub struct CssRuleset { /* private fields */ }Expand description
A structure representing CSS ruleset.
Implementations§
Source§impl CssRuleset
impl CssRuleset
Sourcepub fn new(selector: CssSelector) -> Self
pub fn new(selector: CssSelector) -> Self
Creates a new ruleset with specified selector.
pub fn declaration( self, property: impl Into<CssProperty>, value: impl Into<CssValue>, ) -> Self
pub fn add_declaration( &mut self, property: impl Into<CssProperty>, value: impl Into<CssValue>, )
pub fn declarations(self, declarations: &[CssDeclaration]) -> Self
pub fn add_declarations(&mut self, declarations: &[CssDeclaration])
Trait Implementations§
Source§impl Clone for CssRuleset
impl Clone for CssRuleset
Source§fn clone(&self) -> CssRuleset
fn clone(&self) -> CssRuleset
Returns a duplicate of the value. Read more
1.0.0 · 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 CssRuleset
impl Debug for CssRuleset
Source§impl Display for CssRuleset
impl Display for CssRuleset
Auto Trait Implementations§
impl Freeze for CssRuleset
impl RefUnwindSafe for CssRuleset
impl Send for CssRuleset
impl Sync for CssRuleset
impl Unpin for CssRuleset
impl UnwindSafe for CssRuleset
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