[−][src]Struct stdweb::web::Rect
Represents a rectangle. (JavaScript docs)
Methods
impl Rect
[src]
impl Rect
pub fn get_x(&self) -> f64 | [src] |
Represents the x coordinate of the DOMRect's origin (JavaScript docs)
pub fn get_y(&self) -> f64 | [src] |
Represents the y coordinate of the DOMRect's origin. (JavaScript docs)
pub fn get_width(&self) -> f64 | [src] |
Represents the width of the DOMRect. (JavaScript docs)
pub fn get_height(&self) -> f64 | [src] |
Represents the height of the DOMRect. (JavaScript docs)
pub fn get_top(&self) -> f64 | [src] |
Returns the top coordinate value of the DOMRect. (Has the same value as y, or y + height if height is negative.) (JavaScript docs)
pub fn get_right(&self) -> f64 | [src] |
Returns the right coordinate value of the DOMRect. (Has the same value as x + width, or x if width is negative.) (JavaScript docs)
pub fn get_bottom(&self) -> f64 | [src] |
Returns the bottom coordinate value of the DOMRect. (Has the same value as y + height, or y if height is negative.) (JavaScript docs)
pub fn get_left(&self) -> f64 | [src] |
Returns the left coordinate value of the DOMRect. (Has the same value as x, or x + width if width is negative.) (JavaScript docs)
Trait Implementations
impl JsSerialize for Rect
[src]
impl JsSerialize for Rect
impl TryFrom<Rect> for Reference
[src]
impl TryFrom<Rect> for Reference
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: Rect) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Reference> for Rect
[src]
impl TryFrom<Reference> for Rect
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Reference> for Rect
[src]
impl<'_r> TryFrom<&'_r Reference> for Rect
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Value> for Rect
[src]
impl TryFrom<Value> for Rect
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Value> for Rect
[src]
impl<'_r> TryFrom<&'_r Value> for Rect
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error> | [src] |
impl InstanceOf for Rect
[src]
impl InstanceOf for Rect
fn instance_of(reference: &Reference) -> bool | [src] |
impl ReferenceType for Rect
[src]
impl ReferenceType for Rect
unsafe fn from_reference_unchecked(reference: Reference) -> Self | [src] |
impl AsRef<Reference> for Rect
[src]
impl AsRef<Reference> for Rect
impl Clone for Rect
[src]
impl Clone for Rect
fn clone(&self) -> Rect | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl From<Rect> for Reference
[src]
impl From<Rect> for Reference
impl Debug for Rect
[src]
impl Debug for Rect
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |