pub(crate) trait DOMRectMethods<D>where
D: DomTypes,{
// Required methods
fn FromRect(
global: &<D as DomTypes>::GlobalScope,
other: &DOMRectInit,
_can_gc: CanGc,
) -> Root<Dom<<D as DomTypes>::DOMRect>>;
fn X(&self) -> f64;
fn SetX(&self, value: f64);
fn Y(&self) -> f64;
fn SetY(&self, value: f64);
fn Width(&self) -> f64;
fn SetWidth(&self, value: f64);
fn Height(&self) -> f64;
fn SetHeight(&self, value: f64);
fn Constructor(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
x: f64,
y: f64,
width: f64,
height: f64,
) -> Result<Root<Dom<<D as DomTypes>::DOMRect>>, Error>;
}
Required Methods§
fn FromRect( global: &<D as DomTypes>::GlobalScope, other: &DOMRectInit, _can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::DOMRect>>
fn X(&self) -> f64
fn SetX(&self, value: f64)
fn Y(&self) -> f64
fn SetY(&self, value: f64)
fn Width(&self) -> f64
fn SetWidth(&self, value: f64)
fn Height(&self) -> f64
fn SetHeight(&self, value: f64)
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, x: f64, y: f64, width: f64, height: f64, ) -> Result<Root<Dom<<D as DomTypes>::DOMRect>>, Error>
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.