script::dom::bindings::codegen::Bindings::MutationObserverBinding

Type Alias MutationCallback

Source
pub(crate) type MutationCallback = MutationCallback<DomTypeHolder>;

Aliased Type§

struct MutationCallback {
    pub parent: CallbackFunction<DomTypeHolder>,
}

Fields§

§parent: CallbackFunction<DomTypeHolder>

Implementations

Source§

impl<D> MutationCallback<D>
where D: DomTypes,

Source

pub unsafe fn new( aCx: JSContext, aCallback: *mut JSObject, ) -> Rc<MutationCallback<D>>

Source

pub fn Call_<T>( &self, thisObj: &T, mutations: Vec<Root<Dom<<D as DomTypes>::MutationRecord>>>, observer: &<D as DomTypes>::MutationObserver, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Result<(), Error>
where T: ThisReflector,

Source

pub fn Call__( &self, mutations: Vec<Root<Dom<<D as DomTypes>::MutationRecord>>>, observer: &<D as DomTypes>::MutationObserver, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Result<(), Error>

Trait Implementations

Source§

impl<D> CallbackContainer<D> for MutationCallback<D>
where D: DomTypes,

Source§

unsafe fn new(cx: JSContext, callback: *mut JSObject) -> Rc<MutationCallback<D>>

Create a new CallbackContainer object for the given JSObject. Read more
Source§

fn callback_holder(&self) -> &CallbackObject<D>

Returns the underlying CallbackObject.
Source§

fn callback(&self) -> *mut JSObject

Returns the underlying JSObject.
Source§

fn incumbent(&self) -> Option<&<D as DomTypes>::GlobalScope>

Returns the “callback context”, that is, the global to use as incumbent global when calling the callback.
Source§

impl<D> PartialEq for MutationCallback<D>
where D: PartialEq + DomTypes,

Source§

fn eq(&self, other: &MutationCallback<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<D> ToJSValConvertible for MutationCallback<D>
where D: DomTypes,

Source§

unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl<D> Traceable for MutationCallback<D>
where D: DomTypes + Traceable,

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.
Source§

impl<D> StructuralPartialEq for MutationCallback<D>
where D: DomTypes,