pub(crate) trait DOMPointMethods<D>where
D: DomTypes,{
// Required methods
fn FromPoint(
cx: &mut JSContext,
global: &<D as DomTypes>::GlobalScope,
other: &DOMPointInit,
) -> Root<Dom<<D as DomTypes>::DOMPoint>>;
fn X(&self) -> f64;
fn SetX(&self, value: f64);
fn Y(&self) -> f64;
fn SetY(&self, value: f64);
fn Z(&self) -> f64;
fn SetZ(&self, value: f64);
fn W(&self) -> f64;
fn SetW(&self, value: f64);
fn Constructor(
cx: &mut JSContext,
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
x: f64,
y: f64,
z: f64,
w: f64,
) -> Result<Root<Dom<<D as DomTypes>::DOMPoint>>, Error>;
}Required Methods§
fn FromPoint( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, other: &DOMPointInit, ) -> Root<Dom<<D as DomTypes>::DOMPoint>>
fn X(&self) -> f64
fn SetX(&self, value: f64)
fn Y(&self) -> f64
fn SetY(&self, value: f64)
fn Z(&self) -> f64
fn SetZ(&self, value: f64)
fn W(&self) -> f64
fn SetW(&self, value: f64)
fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, x: f64, y: f64, z: f64, w: f64, ) -> Result<Root<Dom<<D as DomTypes>::DOMPoint>>, 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.