Struct dimage::Size2
[−]
[src]
pub struct Size2<T> { pub width: T, pub height: T, }
2-dimensional sized boundaries.
Fields
width: T
height: T
Methods
impl<T> Size2<T>
[src]
fn as_vec(self) -> Vec2<T> where
T: Copy,
T: Copy,
fn into_vec(self) -> Vec2<T>
fn new(width: T, height: T) -> Size2<T>
Trait Implementations
impl<T: Clone> Clone for Size2<T>
[src]
fn clone(&self) -> Size2<T>
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<T: Copy> Copy for Size2<T>
[src]
impl<T: Debug> Debug for Size2<T>
[src]
impl<T: Eq> Eq for Size2<T>
[src]
impl<T: Hash> Hash for Size2<T>
[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: PartialEq> PartialEq for Size2<T>
[src]
fn eq(&self, __arg_0: &Size2<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Size2<T>) -> bool
This method tests for !=
.
impl<T> Bounds for Size2<T> where
T: Ord + Zero,
[src]
T: Ord + Zero,