Struct shapes::Size [] [src]

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

The size of a shape.

Fields

w: Scalar

The horizontal length of the shape (width).

h: Scalar

The vertical length of the shape (height).

Trait Implementations

impl Debug for Size
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Size
[src]

impl Clone for Size
[src]

fn clone(&self) -> Size

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl From<Vec2d> for Size
[src]

fn from(v: Vec2d) -> Size

Performs the conversion.

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

fn from((w, h): (Scalar, Scalar)) -> Size

Performs the conversion.

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

type Output = Size

The resulting type after applying the * operator

fn mul(self, v: T) -> Size

The method for the * operator

impl Mul<Scalar> for Size
[src]

type Output = Size

The resulting type after applying the * operator

fn mul(self, s: Scalar) -> Size

The method for the * operator