pub(crate) trait DomGlobal {
// Required method
fn global(&self) -> DomRoot<GlobalScope>;
}Required Methods§
Sourcefn global(&self) -> DomRoot<GlobalScope>
fn global(&self) -> DomRoot<GlobalScope>
Returns the relevant global in the same realm as the callee object. Will enter the realm of the global to ensure the global is only accessed from the correct realm.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".