Struct web_sys::DomRectReadOnly
source · #[repr(transparent)]pub struct DomRectReadOnly { /* private fields */ }
Expand description
The DOMRectReadOnly
object
This API requires the following crate features to be activated: DomRectReadOnly
Implementations§
source§impl DomRectReadOnly
impl DomRectReadOnly
sourcepub fn new() -> Result<DomRectReadOnly, JsValue>
pub fn new() -> Result<DomRectReadOnly, JsValue>
The new DOMRectReadOnly(..)
constructor, creating a new instance of DOMRectReadOnly
This API requires the following crate features to be activated: DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
sourcepub fn new_with_x(x: f64) -> Result<DomRectReadOnly, JsValue>
pub fn new_with_x(x: f64) -> Result<DomRectReadOnly, JsValue>
The new DOMRectReadOnly(..)
constructor, creating a new instance of DOMRectReadOnly
This API requires the following crate features to be activated: DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
sourcepub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomRectReadOnly, JsValue>
pub fn new_with_x_and_y(x: f64, y: f64) -> Result<DomRectReadOnly, JsValue>
The new DOMRectReadOnly(..)
constructor, creating a new instance of DOMRectReadOnly
This API requires the following crate features to be activated: DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
sourcepub fn new_with_x_and_y_and_width(
x: f64,
y: f64,
width: f64
) -> Result<DomRectReadOnly, JsValue>
pub fn new_with_x_and_y_and_width(
x: f64,
y: f64,
width: f64
) -> Result<DomRectReadOnly, JsValue>
The new DOMRectReadOnly(..)
constructor, creating a new instance of DOMRectReadOnly
This API requires the following crate features to be activated: DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
sourcepub fn new_with_x_and_y_and_width_and_height(
x: f64,
y: f64,
width: f64,
height: f64
) -> Result<DomRectReadOnly, JsValue>
pub fn new_with_x_and_y_and_width_and_height(
x: f64,
y: f64,
width: f64,
height: f64
) -> Result<DomRectReadOnly, JsValue>
The new DOMRectReadOnly(..)
constructor, creating a new instance of DOMRectReadOnly
This API requires the following crate features to be activated: DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
source§impl DomRectReadOnly
impl DomRectReadOnly
Trait Implementations§
source§impl AsRef<DomRectReadOnly> for DomRect
impl AsRef<DomRectReadOnly> for DomRect
source§fn as_ref(&self) -> &DomRectReadOnly
fn as_ref(&self) -> &DomRectReadOnly
source§impl AsRef<JsValue> for DomRectReadOnly
impl AsRef<JsValue> for DomRectReadOnly
source§impl AsRef<Object> for DomRectReadOnly
impl AsRef<Object> for DomRectReadOnly
source§impl Clone for DomRectReadOnly
impl Clone for DomRectReadOnly
source§fn clone(&self) -> DomRectReadOnly
fn clone(&self) -> DomRectReadOnly
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DomRectReadOnly
impl Debug for DomRectReadOnly
source§impl From<DomRect> for DomRectReadOnly
impl From<DomRect> for DomRectReadOnly
source§fn from(obj: DomRect) -> DomRectReadOnly
fn from(obj: DomRect) -> DomRectReadOnly
source§impl From<DomRectReadOnly> for JsValue
impl From<DomRectReadOnly> for JsValue
source§fn from(obj: DomRectReadOnly) -> JsValue
fn from(obj: DomRectReadOnly) -> JsValue
source§impl From<DomRectReadOnly> for Object
impl From<DomRectReadOnly> for Object
source§fn from(obj: DomRectReadOnly) -> Object
fn from(obj: DomRectReadOnly) -> Object
source§impl From<JsValue> for DomRectReadOnly
impl From<JsValue> for DomRectReadOnly
source§fn from(obj: JsValue) -> DomRectReadOnly
fn from(obj: JsValue) -> DomRectReadOnly
source§impl FromWasmAbi for DomRectReadOnly
impl FromWasmAbi for DomRectReadOnly
source§impl<'a> IntoWasmAbi for &'a DomRectReadOnly
impl<'a> IntoWasmAbi for &'a DomRectReadOnly
source§impl IntoWasmAbi for DomRectReadOnly
impl IntoWasmAbi for DomRectReadOnly
source§impl JsCast for DomRectReadOnly
impl JsCast for DomRectReadOnly
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 DomRectReadOnly
impl OptionFromWasmAbi for DomRectReadOnly
source§impl<'a> OptionIntoWasmAbi for &'a DomRectReadOnly
impl<'a> OptionIntoWasmAbi for &'a DomRectReadOnly
source§impl OptionIntoWasmAbi for DomRectReadOnly
impl OptionIntoWasmAbi for DomRectReadOnly
source§impl RefFromWasmAbi for DomRectReadOnly
impl RefFromWasmAbi for DomRectReadOnly
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<DomRectReadOnly>
type Anchor = ManuallyDrop<DomRectReadOnly>
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 DomRectReadOnly
impl Send for DomRectReadOnly
impl Sync for DomRectReadOnly
impl Unpin for DomRectReadOnly
impl UnwindSafe for DomRectReadOnly
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