pub struct CssStyleBuilder { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Implementations§
Source§impl CssStyleBuilder
impl CssStyleBuilder
Sourcepub fn style_sheet_id(&mut self, v: StyleSheetId) -> &mut Self
pub fn style_sheet_id(&mut self, v: StyleSheetId) -> &mut Self
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
Sourcepub fn css_properties(&mut self, v: Vec<CssProperty>) -> &mut Self
pub fn css_properties(&mut self, v: Vec<CssProperty>) -> &mut Self
CSS properties in the style.
Sourcepub fn shorthand_entries(&mut self, v: Vec<ShorthandEntry>) -> &mut Self
pub fn shorthand_entries(&mut self, v: Vec<ShorthandEntry>) -> &mut Self
Computed values for all shorthands found in the style.
Sourcepub fn range(&mut self, v: SourceRange) -> &mut Self
pub fn range(&mut self, v: SourceRange) -> &mut Self
Style declaration range in the enclosing stylesheet (if available).
pub fn build(&mut self) -> Result<CssStyle, &'static str>
Trait Implementations§
Source§impl Clone for CssStyleBuilder
impl Clone for CssStyleBuilder
Source§fn clone(&self) -> CssStyleBuilder
fn clone(&self) -> CssStyleBuilder
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 CssStyleBuilder
impl Debug for CssStyleBuilder
Auto Trait Implementations§
impl Freeze for CssStyleBuilder
impl RefUnwindSafe for CssStyleBuilder
impl Send for CssStyleBuilder
impl Sync for CssStyleBuilder
impl Unpin for CssStyleBuilder
impl UnwindSafe for CssStyleBuilder
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