Struct usvg::Size[][src]

pub struct Size {
    pub width: f64,
    pub height: f64,
}

A 2D size representation.

Fields

Methods

impl Size
[src]

Creates a new Size from values.

Converts the current size to Rect at provided position.

Trait Implementations

impl Clone for Size
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Size
[src]

impl PartialEq for Size
[src]

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

This method tests for !=.

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

Performs the conversion.

impl Debug for Size
[src]

Formats the value using the given formatter. Read more

impl Display for Size
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Size

impl Sync for Size