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
sourceimpl MutationRecord
impl MutationRecord
fn __assert_parent_type(&self)
sourceimpl 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
sourceimpl DomObject for MutationRecord
impl DomObject for MutationRecord
sourceimpl DomObjectWrap for MutationRecord
impl DomObjectWrap for MutationRecord
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecordBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::mutationrecord::MutationRecord>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::mutationrecord::MutationRecord>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::MutationRecordBinding::MutationRecordBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, 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
sourceimpl HasParent for MutationRecord
impl HasParent for MutationRecord
sourceimpl IDLInterface for MutationRecord
impl IDLInterface for MutationRecord
sourceimpl JSTraceable for MutationRecord
impl JSTraceable for MutationRecord
sourceimpl MallocSizeOf for MutationRecord
impl MallocSizeOf for MutationRecord
sourcefn 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. Read more
sourceimpl MutDomObject for MutationRecord
impl MutDomObject for MutationRecord
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl 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>>>
sourceimpl PartialEq<MutationRecord> for MutationRecord
impl PartialEq<MutationRecord> for MutationRecord
sourcefn eq(&self, other: &MutationRecord) -> bool
fn eq(&self, other: &MutationRecord) -> bool
sourceimpl ToJSValConvertible for MutationRecord
impl ToJSValConvertible for MutationRecord
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert