pub trait ResizeObserverMethods<D: DomTypes> {
// Required methods
fn Observe(
&self,
cx: &NoGC,
target: &D::Element,
options: &ResizeObserverOptions,
);
fn Unobserve(&self, cx: &NoGC, target: &D::Element);
fn Disconnect(&self, cx: &NoGC);
fn Constructor(
cx: &mut JSContext,
global: &D::Window,
proto: Option<HandleObject<'_>>,
callback: Rc<ResizeObserverCallback<D>>,
) -> DomRoot<D::ResizeObserver>;
}Required Methods§
fn Observe( &self, cx: &NoGC, target: &D::Element, options: &ResizeObserverOptions, )
fn Unobserve(&self, cx: &NoGC, target: &D::Element)
fn Disconnect(&self, cx: &NoGC)
fn Constructor( cx: &mut JSContext, global: &D::Window, proto: Option<HandleObject<'_>>, callback: Rc<ResizeObserverCallback<D>>, ) -> DomRoot<D::ResizeObserver>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".