pub trait ResizeObserverMethods<D: DomTypes> {
// Required methods
fn Observe(&self, target: &D::Element, options: &ResizeObserverOptions);
fn Unobserve(&self, target: &D::Element);
fn Disconnect(&self);
fn Constructor(
global: &D::Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
callback: Rc<ResizeObserverCallback<D>>,
) -> DomRoot<D::ResizeObserver>;
}
Required Methods§
fn Observe(&self, target: &D::Element, options: &ResizeObserverOptions)
fn Unobserve(&self, target: &D::Element)
fn Disconnect(&self)
fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, 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", so this trait is not object safe.