pub struct CssDocument { /* private fields */ }Implementations§
Source§impl CssDocument
impl CssDocument
Sourcepub fn element(self, element: CssElement) -> Self
pub fn element(self, element: CssElement) -> Self
Adds a new element to CSS document.
Sourcepub fn add_element(&mut self, element: CssElement)
pub fn add_element(&mut self, element: CssElement)
Adds a new element to CSS document.
Sourcepub fn ruleset(self, ruleset: CssRuleset) -> Self
pub fn ruleset(self, ruleset: CssRuleset) -> Self
Adds a new ruleset to CSS document.
Sourcepub fn add_ruleset(&mut self, ruleset: CssRuleset)
pub fn add_ruleset(&mut self, ruleset: CssRuleset)
Adds a new ruleset to CSS document.
Trait Implementations§
Source§impl Add for CssDocument
impl Add for CssDocument
Source§impl Clone for CssDocument
impl Clone for CssDocument
Source§fn clone(&self) -> CssDocument
fn clone(&self) -> CssDocument
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 CssDocument
impl Debug for CssDocument
Source§impl Default for CssDocument
impl Default for CssDocument
Source§fn default() -> CssDocument
fn default() -> CssDocument
Returns the “default value” for a type. Read more
Source§impl Display for CssDocument
impl Display for CssDocument
Auto Trait Implementations§
impl Freeze for CssDocument
impl RefUnwindSafe for CssDocument
impl Send for CssDocument
impl Sync for CssDocument
impl Unpin for CssDocument
impl UnwindSafe for CssDocument
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