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 Clone for Size
[src]
fn clone(&self) -> Size
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Size
[src]
impl Debug for Size
[src]
impl From<Vec2d> for Size
[src]
impl From<(Scalar, Scalar)> for Size
[src]
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
[src]
Performs the *
operation.