Struct chrome_remote_interface_model::css::CssPropertyBuilder[][src]

pub struct CssPropertyBuilder { /* fields omitted */ }
This is supported on crate features experimental and CSS and DOM and Page only.

Implementations

impl CssPropertyBuilder[src]

pub fn name(&mut self, v: String) -> &mut Self[src]

The property name.

pub fn value(&mut self, v: String) -> &mut Self[src]

The property value.

pub fn important(&mut self, v: bool) -> &mut Self[src]

Whether the property has "!important" annotation (implies false if absent).

pub fn implicit(&mut self, v: bool) -> &mut Self[src]

Whether the property is implicit (implies false if absent).

pub fn text(&mut self, v: String) -> &mut Self[src]

The full property text as specified in the style.

pub fn parsed_ok(&mut self, v: bool) -> &mut Self[src]

Whether the property is understood by the browser (implies true if absent).

pub fn disabled(&mut self, v: bool) -> &mut Self[src]

Whether the property is disabled by the user (present for source-based properties only).

pub fn range(&mut self, v: SourceRange) -> &mut Self[src]

The entire property range in the enclosing style declaration (if available).

pub fn build(&mut self) -> Result<CssProperty, &'static str>[src]

Trait Implementations

impl Clone for CssPropertyBuilder[src]

impl Debug for CssPropertyBuilder[src]

impl Default for CssPropertyBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.