[][src]Struct resvg::Rect

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 rect's left edge position.

Returns rect's right edge position.

Returns rect's top edge position.

Returns rect's bottom edge position.

Checks that the rect contains a point.

Checks that the rect has a valid size.

Trait Implementations

impl Copy for Rect
[src]

impl FuzzyEq<Rect> for Rect
[src]

Returns true if values are not approximately equal.

impl Debug for Rect
[src]

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

impl Display for Rect
[src]

impl Clone for Rect
[src]

Performs copy-assignment from source. Read more

impl RectExt for Rect
[src]

Auto Trait Implementations

impl Send for Rect

impl Sync for Rect

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]