[−][src]Struct tiny_rpg::math::Dimension
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_x(&self) -> u32
[src]
fn get_y(&self) -> u32
[src]
fn get_coordinates(&self) -> (Self::number, Self::number)
[src]
impl Clone for Dimension
[src]
fn clone(&self) -> 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
impl Unpin for Dimension
impl Sync for Dimension
impl Send for Dimension
impl UnwindSafe for Dimension
impl RefUnwindSafe for Dimension
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,