pub(crate) trait DOMQuadMethods<D: DomTypes> {
// Required methods
fn FromRect(
global: &D::GlobalScope,
other: &DOMRectInit,
_can_gc: CanGc,
) -> DomRoot<D::DOMQuad>;
fn FromQuad(
global: &D::GlobalScope,
other: &DOMQuadInit,
_can_gc: CanGc,
) -> DomRoot<D::DOMQuad>;
fn P1(&self) -> DomRoot<D::DOMPoint>;
fn P2(&self) -> DomRoot<D::DOMPoint>;
fn P3(&self) -> DomRoot<D::DOMPoint>;
fn P4(&self) -> DomRoot<D::DOMPoint>;
fn GetBounds(&self, _can_gc: CanGc) -> DomRoot<D::DOMRect>;
fn Constructor(
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
p1: &DOMPointInit,
p2: &DOMPointInit,
p3: &DOMPointInit,
p4: &DOMPointInit,
) -> Fallible<DomRoot<D::DOMQuad>>;
}
Required Methods§
fn FromRect( global: &D::GlobalScope, other: &DOMRectInit, _can_gc: CanGc, ) -> DomRoot<D::DOMQuad>
fn FromQuad( global: &D::GlobalScope, other: &DOMQuadInit, _can_gc: CanGc, ) -> DomRoot<D::DOMQuad>
fn P1(&self) -> DomRoot<D::DOMPoint>
fn P2(&self) -> DomRoot<D::DOMPoint>
fn P3(&self) -> DomRoot<D::DOMPoint>
fn P4(&self) -> DomRoot<D::DOMPoint>
fn GetBounds(&self, _can_gc: CanGc) -> DomRoot<D::DOMRect>
fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, p1: &DOMPointInit, p2: &DOMPointInit, p3: &DOMPointInit, p4: &DOMPointInit, ) -> Fallible<DomRoot<D::DOMQuad>>
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.