Struct shapes::Size [] [src]

pub struct Size {
    pub w: Scalar,
    pub h: Scalar,
}

The size of a shape.

Fields

The horizontal length of the shape (width).

The vertical length of the shape (height).

Trait Implementations

impl Clone for Size
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Size
[src]

impl Debug for Size
[src]

[src]

Formats the value using the given formatter.

impl From<Vec2d> for Size
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl<T: Into<Size>> Mul<T> for Size
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Scalar> for Size
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.