pub trait DOMPointReadOnlyMethods<D: DomTypes> {
// Required methods
fn FromPoint(
cx: &mut JSContext,
global: &D::GlobalScope,
other: &DOMPointInit,
) -> DomRoot<D::DOMPointReadOnly>;
fn X(&self) -> f64;
fn Y(&self) -> f64;
fn Z(&self) -> f64;
fn W(&self) -> f64;
fn MatrixTransform(
&self,
cx: &mut JSContext,
matrix: &DOMMatrixInit,
) -> Fallible<DomRoot<D::DOMPoint>>;
fn Constructor(
cx: &mut JSContext,
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
x: f64,
y: f64,
z: f64,
w: f64,
) -> Fallible<DomRoot<D::DOMPointReadOnly>>;
}Required Methods§
fn FromPoint( cx: &mut JSContext, global: &D::GlobalScope, other: &DOMPointInit, ) -> DomRoot<D::DOMPointReadOnly>
fn X(&self) -> f64
fn Y(&self) -> f64
fn Z(&self) -> f64
fn W(&self) -> f64
fn MatrixTransform( &self, cx: &mut JSContext, matrix: &DOMMatrixInit, ) -> Fallible<DomRoot<D::DOMPoint>>
fn Constructor( cx: &mut JSContext, global: &D::GlobalScope, proto: Option<HandleObject<'_>>, x: f64, y: f64, z: f64, w: f64, ) -> Fallible<DomRoot<D::DOMPointReadOnly>>
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.