pub struct CssPropertyBuilder { /* private fields */ }Available on crate features
experimental and CSS and DOM and Page only.Implementations§
Source§impl CssPropertyBuilder
impl CssPropertyBuilder
Sourcepub fn important(&mut self, v: bool) -> &mut Self
pub fn important(&mut self, v: bool) -> &mut Self
Whether the property has “!important” annotation (implies false if absent).
Sourcepub fn implicit(&mut self, v: bool) -> &mut Self
pub fn implicit(&mut self, v: bool) -> &mut Self
Whether the property is implicit (implies false if absent).
Sourcepub fn text(&mut self, v: String) -> &mut Self
pub fn text(&mut self, v: String) -> &mut Self
The full property text as specified in the style.
Sourcepub fn parsed_ok(&mut self, v: bool) -> &mut Self
pub fn parsed_ok(&mut self, v: bool) -> &mut Self
Whether the property is understood by the browser (implies true if absent).
Sourcepub fn disabled(&mut self, v: bool) -> &mut Self
pub fn disabled(&mut self, v: bool) -> &mut Self
Whether the property is disabled by the user (present for source-based properties only).
Sourcepub fn range(&mut self, v: SourceRange) -> &mut Self
pub fn range(&mut self, v: SourceRange) -> &mut Self
The entire property range in the enclosing style declaration (if available).
pub fn build(&mut self) -> Result<CssProperty, &'static str>
Trait Implementations§
Source§impl Clone for CssPropertyBuilder
impl Clone for CssPropertyBuilder
Source§fn clone(&self) -> CssPropertyBuilder
fn clone(&self) -> CssPropertyBuilder
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 CssPropertyBuilder
impl Debug for CssPropertyBuilder
Auto Trait Implementations§
impl Freeze for CssPropertyBuilder
impl RefUnwindSafe for CssPropertyBuilder
impl Send for CssPropertyBuilder
impl Sync for CssPropertyBuilder
impl Unpin for CssPropertyBuilder
impl UnwindSafe for CssPropertyBuilder
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