Struct window::Size [] [src]

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

Size in pixels.

Fields

width: u32

The width in pixels.

height: u32

The height in pixels.

Trait Implementations

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 Copy for Size
[src]

impl From<[u32; 2]> for Size
[src]

fn from(value: [u32; 2]) -> Size

Performs the conversion.

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

fn from(value: (u32, u32)) -> Size

Performs the conversion.