pub trait DOMRectReadOnlyMethods<D: DomTypes> {
// Required methods
fn FromRect(
cx: &mut JSContext,
global: &D::GlobalScope,
other: &DOMRectInit,
) -> DomRoot<D::DOMRectReadOnly>;
fn X(&self) -> f64;
fn Y(&self) -> f64;
fn Width(&self) -> f64;
fn Height(&self) -> f64;
fn Top(&self) -> f64;
fn Right(&self) -> f64;
fn Bottom(&self) -> f64;
fn Left(&self) -> f64;
fn Constructor(
cx: &mut JSContext,
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
x: f64,
y: f64,
width: f64,
height: f64,
) -> Fallible<DomRoot<D::DOMRectReadOnly>>;
}Required Methods§
fn FromRect( cx: &mut JSContext, global: &D::GlobalScope, other: &DOMRectInit, ) -> DomRoot<D::DOMRectReadOnly>
fn X(&self) -> f64
fn Y(&self) -> f64
fn Width(&self) -> f64
fn Height(&self) -> f64
fn Top(&self) -> f64
fn Right(&self) -> f64
fn Bottom(&self) -> f64
fn Left(&self) -> f64
fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, x: f64, y: f64, width: f64, height: f64, ) -> Fallible<DomRoot<D::DOMRectReadOnly>>
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.