pub(crate) trait MutationObserverMethods<D: DomTypes> {
// Required methods
fn Observe(
&self,
target: &D::Node,
options: &MutationObserverInit,
) -> Fallible<()>;
fn Disconnect(&self);
fn TakeRecords(&self) -> Vec<DomRoot<D::MutationRecord>>;
fn Constructor(
global: &D::Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
callback: Rc<MutationCallback<D>>,
) -> Fallible<DomRoot<D::MutationObserver>>;
}
Required Methods§
fn Observe( &self, target: &D::Node, options: &MutationObserverInit, ) -> Fallible<()>
fn Disconnect(&self)
fn TakeRecords(&self) -> Vec<DomRoot<D::MutationRecord>>
fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, callback: Rc<MutationCallback<D>>, ) -> Fallible<DomRoot<D::MutationObserver>>
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.