Struct dimage::Size2 [] [src]

pub struct Size2<T> {
    pub width: T,
    pub height: T,
}

2-dimensional sized boundaries.

Fields

Methods

impl<T: Copy> Size2<T>
[src]

Trait Implementations

impl<T: Clone> Clone for Size2<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for Size2<T>
[src]

impl<T: Debug> Debug for Size2<T>
[src]

Formats the value using the given formatter.

impl<T: Eq> Eq for Size2<T>
[src]

impl<T: Hash> Hash for Size2<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: PartialEq> PartialEq for Size2<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Copy> Bounds for Size2<T> where
    T: Ord + Zero
[src]

impl<T> From<(T, T)> for Size2<T>
[src]

Performs the conversion.

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

Performs the conversion.