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>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecordBinding::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>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::mutationrecord::MutationRecord>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecordBinding::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>) -> 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§unsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
source§impl MutationRecordMethods for MutationRecord
impl MutationRecordMethods 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<MutationRecord> for MutationRecord
impl PartialEq<MutationRecord> for MutationRecord
source§fn eq(&self, other: &MutationRecord) -> bool
fn eq(&self, other: &MutationRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToJSValConvertible for MutationRecord
impl ToJSValConvertible for MutationRecord
Auto Trait Implementations§
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> 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> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
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