Struct usvg::Rect[][src]

pub struct Rect {
    pub x: f64,
    pub y: f64,
    pub width: f64,
    pub height: f64,
}

A rect representation.

Fields

Methods

impl Rect
[src]

Creates a new Rect from values.

Returns rect's size.

Returns transformed rect.

Trait Implementations

impl Clone for Rect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rect
[src]

impl PartialEq for Rect
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Rect
[src]

Formats the value using the given formatter. Read more

impl Display for Rect
[src]

Formats the value using the given formatter. Read more

impl From<(f64, f64, f64, f64)> for Rect
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect