[][src]Struct guion::util::bounds::Dims

pub struct Dims {
    pub w: u32,
    pub h: u32,
}

Fields

w: u32h: u32

Methods

impl Dims[src]

pub fn par(&self, o: Orientation) -> u32[src]

pub fn unpar(&self, o: Orientation) -> u32[src]

Trait Implementations

impl<'_> Add<&'_ Dims> for Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'a, '_> Add<&'_ Dims> for &'a Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'a, '_> Add<&'_ Dims> for &'a mut Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'_> Add<&'_ mut Dims> for Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'a, '_> Add<&'_ mut Dims> for &'a Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'a, '_> Add<&'_ mut Dims> for &'a mut Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl Add<Dims> for Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'a> Add<Dims> for &'a Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'a> Add<Dims> for &'a mut Dims[src]

type Output = Dims

The resulting type after applying the + operator.

impl<'_> AddAssign<&'_ Dims> for Dims[src]

impl<'a, '_> AddAssign<&'_ Dims> for &'a mut Dims[src]

impl<'_> AddAssign<&'_ mut Dims> for Dims[src]

impl<'a, '_> AddAssign<&'_ mut Dims> for &'a mut Dims[src]

impl AddAssign<Dims> for Dims[src]

impl<'a> AddAssign<Dims> for &'a mut Dims[src]

impl Clone for Dims[src]

impl Copy for Dims[src]

impl Default for Dims[src]

impl<T, U> From<(T, U)> for Dims where
    T: Into<u32>,
    U: Into<u32>, 
[src]

impl<'_> Sub<&'_ Dims> for Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'a, '_> Sub<&'_ Dims> for &'a Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'a, '_> Sub<&'_ Dims> for &'a mut Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'_> Sub<&'_ mut Dims> for Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'a, '_> Sub<&'_ mut Dims> for &'a Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'a, '_> Sub<&'_ mut Dims> for &'a mut Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl Sub<Dims> for Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'a> Sub<Dims> for &'a Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'a> Sub<Dims> for &'a mut Dims[src]

type Output = Dims

The resulting type after applying the - operator.

impl<'_> SubAssign<&'_ Dims> for Dims[src]

impl<'a, '_> SubAssign<&'_ Dims> for &'a mut Dims[src]

impl<'_> SubAssign<&'_ mut Dims> for Dims[src]

impl<'a, '_> SubAssign<&'_ mut Dims> for &'a mut Dims[src]

impl SubAssign<Dims> for Dims[src]

impl<'a> SubAssign<Dims> for &'a mut Dims[src]

Auto Trait Implementations

impl RefUnwindSafe for Dims

impl Send for Dims

impl Sync for Dims

impl Unpin for Dims

impl UnwindSafe for Dims

Blanket Implementations

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

impl<T> AtomState<T> for T where
    T: Copy
[src]

impl<T> AtomStateMut<T> for T where
    T: Copy
[src]

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.