[−][src]Struct stdweb::web::MutationObserverInit
Specifies which changes should be observed for the target.
This is only used with the MutationObserver::observe
method.
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]
fn clone(&self) -> MutationObserverInit<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for MutationObserverInit<'a>
[src]
Auto Trait Implementations
impl<'a> Send for MutationObserverInit<'a>
impl<'a> Sync for MutationObserverInit<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,