Struct orbclient::size::Size [] [src]

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

A size

Fields

width: u32 height: u32

Methods

impl Size
[src]

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

Create a new size

Trait Implementations

impl Default for Size
[src]

fn default() -> Size

Returns the "default value" for a type. Read more

impl Debug for Size
[src]

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

Formats the value using the given formatter.

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

type Output = Size

The resulting type after applying the + operator

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

The method for the + operator

impl Sub for Size
[src]

type Output = Size

The resulting type after applying the - operator

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

The method for the - operator