[][src]Struct guion::layout::size::Size

pub struct Size {
    pub x: SizeAxis,
    pub y: SizeAxis,
}

Size +/+= Border

Fields

x: SizeAxisy: SizeAxis

Methods

impl Size[src]

pub const fn fixed(w: u32, h: u32) -> Self[src]

pub fn add(&mut self, o: &Self, dir: Orientation)[src]

pub fn add_x(&mut self, o: &Self)[src]

pub fn add_y(&mut self, o: &Self)[src]

pub const fn empty() -> Self[src]

pub fn flip(&mut self)[src]

pub fn par(&self, dir: Orientation) -> &SizeAxis[src]

pub fn unpar(&self, dir: Orientation) -> &SizeAxis[src]

pub fn from_parallel(par: SizeAxis, unpar: SizeAxis, dir: Orientation) -> Self[src]

Trait Implementations

impl<'_> Add<&'_ Border> for Size[src]

type Output = Size

The resulting type after applying the + operator.

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

type Output = Size

The resulting type after applying the + operator.

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

type Output = Size

The resulting type after applying the + operator.

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

type Output = Size

The resulting type after applying the + operator.

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

type Output = Size

The resulting type after applying the + operator.

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

type Output = Size

The resulting type after applying the + operator.

impl Add<Border> for Size[src]

type Output = Size

The resulting type after applying the + operator.

impl<'a> Add<Border> for &'a Size[src]

type Output = Size

The resulting type after applying the + operator.

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

type Output = Size

The resulting type after applying the + operator.

impl<'_> AddAssign<&'_ Border> for Size[src]

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

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

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

impl AddAssign<Border> for Size[src]

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

impl Clone for Size[src]

impl ISize for Size[src]

impl Index<Orientation> for Size[src]

type Output = SizeAxis

The returned type after indexing.

Auto Trait Implementations

impl RefUnwindSafe for Size

impl Send for Size

impl Sync for Size

impl Unpin for Size

impl UnwindSafe for Size

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> 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.