[][src]Struct web_sys::CssStyleDeclaration

#[repr(transparent)]pub struct CssStyleDeclaration { /* fields omitted */ }

The CssStyleDeclaration class.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

Methods

impl CssStyleDeclaration[src]

pub fn css_text(&self) -> String[src]

Getter for the cssText field of this object.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn set_css_text(&self, value: &str)[src]

Setter for the cssText field of this object.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn length(&self) -> u32[src]

Getter for the length field of this object.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn parent_rule(&self) -> Option<CssRule>[src]

Getter for the parentRule field of this object.

MDN Documentation

This API requires the following crate features to be activated: CssRule, CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn get_property_priority(&self, property: &str) -> String[src]

The getPropertyPriority() method.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn get_property_value(&self, property: &str) -> Result<String, JsValue>[src]

The getPropertyValue() method.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn item(&self, index: u32) -> String[src]

The item() method.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn remove_property(&self, property: &str) -> Result<String, JsValue>[src]

The removeProperty() method.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn set_property(&self, property: &str, value: &str) -> Result<(), JsValue>[src]

The setProperty() method.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn set_property_with_priority(
    &self,
    property: &str,
    value: &str,
    priority: &str
) -> Result<(), JsValue>
[src]

The setProperty() method.

MDN Documentation

This API requires the following crate features to be activated: CssStyleDeclaration

impl CssStyleDeclaration[src]

pub fn get(&self, index: u32) -> Option<String>[src]

Indexing getter.

This API requires the following crate features to be activated: CssStyleDeclaration

Trait Implementations

impl AsRef<CssStyleDeclaration> for CssStyleDeclaration[src]

impl AsRef<JsValue> for CssStyleDeclaration[src]

impl AsRef<Object> for CssStyleDeclaration[src]

impl Clone for CssStyleDeclaration[src]

impl Debug for CssStyleDeclaration[src]

impl Deref for CssStyleDeclaration[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for CssStyleDeclaration[src]

impl From<CssStyleDeclaration> for JsValue[src]

impl From<CssStyleDeclaration> for Object[src]

impl From<JsValue> for CssStyleDeclaration[src]

impl FromWasmAbi for CssStyleDeclaration[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for CssStyleDeclaration[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a CssStyleDeclaration[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for CssStyleDeclaration[src]

impl OptionFromWasmAbi for CssStyleDeclaration[src]

impl OptionIntoWasmAbi for CssStyleDeclaration[src]

impl<'a> OptionIntoWasmAbi for &'a CssStyleDeclaration[src]

impl PartialEq<CssStyleDeclaration> for CssStyleDeclaration[src]

impl RefFromWasmAbi for CssStyleDeclaration[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<CssStyleDeclaration>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for CssStyleDeclaration[src]

impl StructuralPartialEq for CssStyleDeclaration[src]

impl WasmDescribe for CssStyleDeclaration[src]

Auto Trait Implementations

impl RefUnwindSafe for CssStyleDeclaration

impl !Send for CssStyleDeclaration

impl !Sync for CssStyleDeclaration

impl Unpin for CssStyleDeclaration

impl UnwindSafe for CssStyleDeclaration

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> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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.