Struct script::dom::mutationrecord::MutationRecord
source · #[repr(C)]pub struct MutationRecord {
reflector_: Reflector,
record_type: DOMString,
target: Dom<Node>,
attribute_name: Option<DOMString>,
attribute_namespace: Option<DOMString>,
old_value: Option<DOMString>,
added_nodes: MutNullableDom<NodeList>,
removed_nodes: MutNullableDom<NodeList>,
next_sibling: Option<Dom<Node>>,
prev_sibling: Option<Dom<Node>>,
}
Fields§
§reflector_: Reflector
§record_type: DOMString
§target: Dom<Node>
§attribute_name: Option<DOMString>
§attribute_namespace: Option<DOMString>
§old_value: Option<DOMString>
§added_nodes: MutNullableDom<NodeList>
§removed_nodes: MutNullableDom<NodeList>
§next_sibling: Option<Dom<Node>>
§prev_sibling: Option<Dom<Node>>
Implementations§
source§impl MutationRecord
impl MutationRecord
fn __assert_parent_type(&self)
source§impl MutationRecord
impl MutationRecord
pub fn attribute_mutated( target: &Node, attribute_name: &LocalName, attribute_namespace: Option<&Namespace>, old_value: Option<DOMString>, ) -> Root<Dom<MutationRecord>>
pub fn character_data_mutated( target: &Node, old_value: Option<DOMString>, ) -> Root<Dom<MutationRecord>>
pub fn child_list_mutated( target: &Node, added_nodes: Option<&[&Node]>, removed_nodes: Option<&[&Node]>, next_sibling: Option<&Node>, prev_sibling: Option<&Node>, ) -> Root<Dom<MutationRecord>>
fn new_inherited( record_type: &str, target: &Node, attribute_name: Option<DOMString>, attribute_namespace: Option<DOMString>, old_value: Option<DOMString>, added_nodes: Option<&NodeList>, removed_nodes: Option<&NodeList>, next_sibling: Option<&Node>, prev_sibling: Option<&Node>, ) -> MutationRecord
Trait Implementations§
source§impl DomObject for MutationRecord
impl DomObject for MutationRecord
source§impl DomObjectWrap for MutationRecord
impl DomObjectWrap for MutationRecord
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecord_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::mutationrecord::MutationRecord>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::mutationrecord::MutationRecord>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecord_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::mutationrecord::MutationRecord>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::mutationrecord::MutationRecord>>}
Function pointer to the general wrap function type
source§impl HasParent for MutationRecord
impl HasParent for MutationRecord
source§impl IDLInterface for MutationRecord
impl IDLInterface for MutationRecord
source§impl MallocSizeOf for MutationRecord
impl MallocSizeOf for MutationRecord
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for MutationRecord
impl MutDomObject for MutationRecord
source§impl MutationRecordMethods<DomTypeHolder> for MutationRecord
impl MutationRecordMethods<DomTypeHolder> for MutationRecord
fn Type(&self) -> DOMString
fn Target(&self) -> Root<Dom<Node>>
fn GetAttributeName(&self) -> Option<DOMString>
fn GetAttributeNamespace(&self) -> Option<DOMString>
fn GetOldValue(&self) -> Option<DOMString>
fn AddedNodes(&self) -> Root<Dom<NodeList>>
fn RemovedNodes(&self) -> Root<Dom<NodeList>>
fn GetPreviousSibling(&self) -> Option<Root<Dom<Node>>>
fn GetNextSibling(&self) -> Option<Root<Dom<Node>>>
source§impl PartialEq for MutationRecord
impl PartialEq for MutationRecord
source§impl ToJSValConvertible for MutationRecord
impl ToJSValConvertible for MutationRecord
source§impl Traceable for MutationRecord
impl Traceable for MutationRecord
impl Eq for MutationRecord
Auto Trait Implementations§
impl !Freeze for MutationRecord
impl !RefUnwindSafe for MutationRecord
impl !Send for MutationRecord
impl !Sync for MutationRecord
impl Unpin for MutationRecord
impl !UnwindSafe for MutationRecord
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert