Struct stdweb::web::Rect [] [src]

pub struct Rect(_);

Represents a rectangle. (JavaScript docs)

Methods

impl Rect
[src]

[src]

Represents the x coordinate of the DOMRect's origin (JavaScript docs)

[src]

Represents the y coordinate of the DOMRect's origin. (JavaScript docs)

[src]

Represents the width of the DOMRect. (JavaScript docs)

[src]

Represents the height of the DOMRect. (JavaScript docs)

[src]

Returns the top coordinate value of the DOMRect. (Has the same value as y, or y + height if height is negative.) (JavaScript docs)

[src]

Returns the right coordinate value of the DOMRect. (Has the same value as x + width, or x if width is negative.) (JavaScript docs)

[src]

Returns the bottom coordinate value of the DOMRect. (Has the same value as y + height, or y if height is negative.) (JavaScript docs)

[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 Clone for Rect
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Rect
[src]

[src]

Formats the value using the given formatter. Read more

impl InstanceOf for Rect
[src]

[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for Rect
[src]

[src]

Performs the conversion.

impl ReferenceType for Rect
[src]

[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<Rect> for Reference
[src]

[src]

Performs the conversion.

impl TryFrom<Rect> for Reference
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Reference> for Rect
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Reference> for Rect
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl TryFrom<Value> for Rect
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl<'_r> TryFrom<&'_r Value> for Rect
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl JsSerialize for Rect
[src]

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect