Struct kernel::graphics::size::Size [] [src]

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

A size

Fields

width
height

Methods

impl Size

fn new(width: usize, height: usize) -> Self

Create a new size

Trait Implementations

impl Add for Size

type Output = Size

fn add(self, other: Size) -> Self::Output

impl Sub for Size

type Output = Size

fn sub(self, other: Size) -> Self::Output

Derived Implementations

impl Clone for Size

fn clone(&self) -> Size

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

impl Copy for Size