[][src]Struct stdweb::web::MutationObserverInit

pub struct MutationObserverInit<'a> {
    pub child_list: bool,
    pub attributes: bool,
    pub character_data: bool,
    pub subtree: bool,
    pub attribute_old_value: bool,
    pub character_data_old_value: bool,
    pub attribute_filter: Option<&'a [&'a str]>,
}

Specifies which changes should be observed for the target.

This is only used with the MutationObserver::observe method.

(JavaScript docs)

Fields

child_list: bool

If true it will observe all inserts and removals of the target's children (including text nodes).

This is not recursive, it will only observe immediate children (unless subtree is true in which case it will observe all children and sub-children recursively).

attributes: bool

If true it will observe all changes to the target's attributes.

character_data: bool

If true it will observe all changes to the CharacterData's data.

subtree: bool

If true it will observe all changes to the target, the target's children, and the target's sub-children.

This is recursive, so it causes all children and sub-children to be observed.

attribute_old_value: bool

If true it will store the target's old attribute value in old_value.

character_data_old_value: bool

If true it will store the CharacterData's old data in old_data.

attribute_filter: Option<&'a [&'a str]>

If Some it will only observe the specified attributes. The attributes should be specified without a namespace.

If None it will observe all attributes.

Trait Implementations

impl<'a> Clone for MutationObserverInit<'a>[src]

impl<'a> Debug for MutationObserverInit<'a>[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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