[][src]Struct tiny_rpg::math::Dimension

pub struct Dimension { /* fields omitted */ }

Methods

impl Dimension[src]

pub fn new(width: u32, height: u32) -> Dimension[src]

pub fn get_height(&self) -> u32[src]

pub fn get_width(&self) -> u32[src]

pub fn set_width(&mut self, width: u32)[src]

pub fn set_height(&mut self, height: u32)[src]

Trait Implementations

impl TwoDimensional for Dimension[src]

type number = u32

fn get_coordinates(&self) -> (Self::number, Self::number)[src]

impl Clone for Dimension[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<Dimension> for Dimension[src]

impl Copy for Dimension[src]

impl Eq for Dimension[src]

impl Debug for Dimension[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]