pub(crate) type IntersectionObserverCallback = IntersectionObserverCallback<DomTypeHolder>;
Aliased Type§
struct IntersectionObserverCallback {
pub parent: CallbackFunction<DomTypeHolder>,
}
Fields§
§parent: CallbackFunction<DomTypeHolder>
Implementations
Source§impl<D> IntersectionObserverCallback<D>where
D: DomTypes,
impl<D> IntersectionObserverCallback<D>where
D: DomTypes,
pub unsafe fn new( aCx: JSContext, aCallback: *mut JSObject, ) -> Rc<IntersectionObserverCallback<D>>
pub fn Call_<T>(
&self,
thisObj: &T,
entries: Vec<Root<Dom<<D as DomTypes>::IntersectionObserverEntry>>>,
observer: &<D as DomTypes>::IntersectionObserver,
aExceptionHandling: ExceptionHandling,
can_gc: CanGc,
) -> Result<(), Error>where
T: ThisReflector,
pub fn Call__( &self, entries: Vec<Root<Dom<<D as DomTypes>::IntersectionObserverEntry>>>, observer: &<D as DomTypes>::IntersectionObserver, aExceptionHandling: ExceptionHandling, can_gc: CanGc, ) -> Result<(), Error>
Trait Implementations
Source§impl<D> CallbackContainer<D> for IntersectionObserverCallback<D>where
D: DomTypes,
impl<D> CallbackContainer<D> for IntersectionObserverCallback<D>where
D: DomTypes,
Source§unsafe fn new(
cx: JSContext,
callback: *mut JSObject,
) -> Rc<IntersectionObserverCallback<D>>
unsafe fn new( cx: JSContext, callback: *mut JSObject, ) -> Rc<IntersectionObserverCallback<D>>
Create a new CallbackContainer object for the given
JSObject
. Read moreSource§fn callback_holder(&self) -> &CallbackObject<D>
fn callback_holder(&self) -> &CallbackObject<D>
Returns the underlying
CallbackObject
.Source§fn incumbent(&self) -> Option<&<D as DomTypes>::GlobalScope>
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 IntersectionObserverCallback<D>
impl<D> PartialEq for IntersectionObserverCallback<D>
Source§fn eq(&self, other: &IntersectionObserverCallback<D>) -> bool
fn eq(&self, other: &IntersectionObserverCallback<D>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.