Struct web_sys::DomPointReadOnly
source · #[repr(transparent)]pub struct DomPointReadOnly { /* private fields */ }
Expand description
The DOMPointReadOnly
object
This API requires the following crate features to be activated: DomPointReadOnly
Implementations§
source§impl DomPointReadOnly
impl DomPointReadOnly
sourcepub fn new() -> Result<DomPointReadOnly, JsValue>
pub fn new() -> Result<DomPointReadOnly, JsValue>
The new DOMPointReadOnly(..)
constructor, creating a new instance of DOMPointReadOnly
This API requires the following crate features to be activated: DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
sourcepub fn new_with_x(x: f64) -> Result<DomPointReadOnly, JsValue>
pub fn new_with_x(x: f64) -> Result<DomPointReadOnly, JsValue>
The new DOMPointReadOnly(..)
constructor, creating a new instance of DOMPointReadOnly
This API requires the following crate features to be activated: DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
sourcepub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomPointReadOnly, JsValue>
pub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomPointReadOnly, JsValue>
The new DOMPointReadOnly(..)
constructor, creating a new instance of DOMPointReadOnly
This API requires the following crate features to be activated: DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
sourcepub fn new_with_x_and_y_and_z(
x: f64,
y: f64,
z: f64
) -> Result<DomPointReadOnly, JsValue>
pub fn new_with_x_and_y_and_z(
x: f64,
y: f64,
z: f64
) -> Result<DomPointReadOnly, JsValue>
The new DOMPointReadOnly(..)
constructor, creating a new instance of DOMPointReadOnly
This API requires the following crate features to be activated: DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
sourcepub fn new_with_x_and_y_and_z_and_w(
x: f64,
y: f64,
z: f64,
w: f64
) -> Result<DomPointReadOnly, JsValue>
pub fn new_with_x_and_y_and_z_and_w(
x: f64,
y: f64,
z: f64,
w: f64
) -> Result<DomPointReadOnly, JsValue>
The new DOMPointReadOnly(..)
constructor, creating a new instance of DOMPointReadOnly
This API requires the following crate features to be activated: DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
sourcepub fn from_point() -> DomPointReadOnly
pub fn from_point() -> DomPointReadOnly
The fromPoint()
method
This API requires the following crate features to be activated: DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
sourcepub fn from_point_with_other(other: &DomPointInit) -> DomPointReadOnly
pub fn from_point_with_other(other: &DomPointInit) -> DomPointReadOnly
The fromPoint()
method
This API requires the following crate features to be activated: DomPointInit
, DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
source§impl DomPointReadOnly
impl DomPointReadOnly
Trait Implementations§
source§impl AsRef<DomPointReadOnly> for DomPoint
impl AsRef<DomPointReadOnly> for DomPoint
source§fn as_ref(&self) -> &DomPointReadOnly
fn as_ref(&self) -> &DomPointReadOnly
source§impl AsRef<JsValue> for DomPointReadOnly
impl AsRef<JsValue> for DomPointReadOnly
source§impl AsRef<Object> for DomPointReadOnly
impl AsRef<Object> for DomPointReadOnly
source§impl Clone for DomPointReadOnly
impl Clone for DomPointReadOnly
source§fn clone(&self) -> DomPointReadOnly
fn clone(&self) -> DomPointReadOnly
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DomPointReadOnly
impl Debug for DomPointReadOnly
source§impl From<DomPoint> for DomPointReadOnly
impl From<DomPoint> for DomPointReadOnly
source§fn from(obj: DomPoint) -> DomPointReadOnly
fn from(obj: DomPoint) -> DomPointReadOnly
source§impl From<DomPointReadOnly> for JsValue
impl From<DomPointReadOnly> for JsValue
source§fn from(obj: DomPointReadOnly) -> JsValue
fn from(obj: DomPointReadOnly) -> JsValue
source§impl From<DomPointReadOnly> for Object
impl From<DomPointReadOnly> for Object
source§fn from(obj: DomPointReadOnly) -> Object
fn from(obj: DomPointReadOnly) -> Object
source§impl From<JsValue> for DomPointReadOnly
impl From<JsValue> for DomPointReadOnly
source§fn from(obj: JsValue) -> DomPointReadOnly
fn from(obj: JsValue) -> DomPointReadOnly
source§impl FromWasmAbi for DomPointReadOnly
impl FromWasmAbi for DomPointReadOnly
source§impl<'a> IntoWasmAbi for &'a DomPointReadOnly
impl<'a> IntoWasmAbi for &'a DomPointReadOnly
source§impl IntoWasmAbi for DomPointReadOnly
impl IntoWasmAbi for DomPointReadOnly
source§impl JsCast for DomPointReadOnly
impl JsCast for DomPointReadOnly
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for DomPointReadOnly
impl OptionFromWasmAbi for DomPointReadOnly
source§impl<'a> OptionIntoWasmAbi for &'a DomPointReadOnly
impl<'a> OptionIntoWasmAbi for &'a DomPointReadOnly
source§impl OptionIntoWasmAbi for DomPointReadOnly
impl OptionIntoWasmAbi for DomPointReadOnly
source§impl RefFromWasmAbi for DomPointReadOnly
impl RefFromWasmAbi for DomPointReadOnly
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<DomPointReadOnly>
type Anchor = ManuallyDrop<DomPointReadOnly>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DomPointReadOnly
impl Send for DomPointReadOnly
impl Sync for DomPointReadOnly
impl Unpin for DomPointReadOnly
impl UnwindSafe for DomPointReadOnly
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more