[][src]Struct doryen_extra::USize

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

A struct representing an unsigned Size determined by its width and height values.

Fields

width: u32

The width value the Size is currently representing.

height: u32

The height value the Size is currently representing.

Implementations

impl USize[src]

pub const ZERO: Self[src]

A constant representing a Size where both width and height are 0.

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

Returns a Size with the given width and height values.

impl USize[src]

pub fn area(self) -> u32[src]

Returns the area represented by this size

Trait Implementations

impl Add<(u32, u32)> for USize[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<USize> for USize[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<USize> for Position[src]

type Output = Rectangle

The resulting type after applying the + operator.

impl Add<u32> for USize[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<(u32, u32)> for USize[src]

impl AddAssign<u32> for USize[src]

impl Clone for USize[src]

impl Copy for USize[src]

impl Debug for USize[src]

impl Default for USize[src]

impl Display for USize[src]

impl Div<u32> for USize[src]

type Output = Self

The resulting type after applying the / operator.

impl DivAssign<u32> for USize[src]

impl Eq for USize[src]

impl From<(u32, u32)> for USize[src]

impl From<USize> for (u32, u32)[src]

impl Mul<u32> for USize[src]

type Output = Self

The resulting type after applying the * operator.

impl MulAssign<u32> for USize[src]

impl PartialEq<USize> for USize[src]

impl Rem<u32> for USize[src]

type Output = Self

The resulting type after applying the % operator.

impl RemAssign<u32> for USize[src]

impl StructuralEq for USize[src]

impl StructuralPartialEq for USize[src]

impl Sub<(u32, u32)> for USize[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<USize> for USize[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<u32> for USize[src]

type Output = Self

The resulting type after applying the - operator.

impl SubAssign<(u32, u32)> for USize[src]

impl SubAssign<u32> for USize[src]

Auto Trait Implementations

impl RefUnwindSafe for USize

impl Send for USize

impl Sync for USize

impl Unpin for USize

impl UnwindSafe for USize

Blanket Implementations

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

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

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

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> Erased for T

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

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

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,