pub(crate) trait IntersectionObserverMethods<D: DomTypes> {
    // Required methods
    fn GetRoot(&self) -> Option<ElementOrDocument<D>>;
    fn RootMargin(&self) -> DOMString;
    fn ScrollMargin(&self) -> DOMString;
    fn Thresholds(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn Delay(&self) -> i32;
    fn TrackVisibility(&self) -> bool;
    fn Observe(&self, target: &D::Element);
    fn Unobserve(&self, target: &D::Element);
    fn Disconnect(&self);
    fn TakeRecords(&self) -> Vec<DomRoot<D::IntersectionObserverEntry>>;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        callback: Rc<IntersectionObserverCallback<D>>,
        options: &IntersectionObserverInit<D>,
    ) -> Fallible<DomRoot<D::IntersectionObserver>>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§