Struct guion::util::border::Border[][src]

pub struct Border {
    pub left: u32,
    pub right: u32,
    pub top: u32,
    pub bottom: u32,
}

Fields

left: u32right: u32top: u32bottom: u32

Implementations

impl Border[src]

pub const fn new(left: u32, right: u32, top: u32, bottom: u32) -> Self[src]

pub const fn uniform(side: u32) -> Self[src]

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

pub const fn inner(&self) -> Offset[src]

get the offset of the inner relative to the outer

pub const fn border_effective(&self) -> Dims[src]

the size of the effective border

Trait Implementations

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

type Output = StdGonstraints

The resulting type after applying the + operator.

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

type Output = StdGonstraints

The resulting type after applying the + operator.

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

type Output = StdGonstraints

The resulting type after applying the + operator.

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

type Output = StdGonstraints

The resulting type after applying the + operator.

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

type Output = StdGonstraints

The resulting type after applying the + operator.

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

type Output = StdGonstraints

The resulting type after applying the + operator.

impl Add<Border> for StdGonstraints[src]

type Output = StdGonstraints

The resulting type after applying the + operator.

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

type Output = StdGonstraints

The resulting type after applying the + operator.

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

type Output = StdGonstraints

The resulting type after applying the + operator.

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

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

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

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

impl AddAssign<Border> for StdGonstraints[src]

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

impl Clone for Border[src]

impl Copy for Border[src]

impl Div<&'_ mut u32> for Border[src]

type Output = Border

The resulting type after applying the / operator.

impl<'a> Div<&'_ mut u32> for &'a Border[src]

type Output = Border

The resulting type after applying the / operator.

impl<'a> Div<&'_ mut u32> for &'a mut Border[src]

type Output = Border

The resulting type after applying the / operator.

impl Div<&'_ u32> for Border[src]

type Output = Border

The resulting type after applying the / operator.

impl<'a> Div<&'_ u32> for &'a Border[src]

type Output = Border

The resulting type after applying the / operator.

impl<'a> Div<&'_ u32> for &'a mut Border[src]

type Output = Border

The resulting type after applying the / operator.

impl Div<u32> for Border[src]

type Output = Border

The resulting type after applying the / operator.

impl<'a> Div<u32> for &'a Border[src]

type Output = Border

The resulting type after applying the / operator.

impl<'a> Div<u32> for &'a mut Border[src]

type Output = Border

The resulting type after applying the / operator.

impl DivAssign<&'_ mut u32> for Border[src]

impl<'a> DivAssign<&'_ mut u32> for &'a mut Border[src]

impl DivAssign<&'_ u32> for Border[src]

impl<'a> DivAssign<&'_ u32> for &'a mut Border[src]

impl DivAssign<u32> for Border[src]

impl<'a> DivAssign<u32> for &'a mut Border[src]

impl Mul<&'_ mut u32> for Border[src]

type Output = Border

The resulting type after applying the * operator.

impl<'a> Mul<&'_ mut u32> for &'a Border[src]

type Output = Border

The resulting type after applying the * operator.

impl<'a> Mul<&'_ mut u32> for &'a mut Border[src]

type Output = Border

The resulting type after applying the * operator.

impl Mul<&'_ u32> for Border[src]

type Output = Border

The resulting type after applying the * operator.

impl<'a> Mul<&'_ u32> for &'a Border[src]

type Output = Border

The resulting type after applying the * operator.

impl<'a> Mul<&'_ u32> for &'a mut Border[src]

type Output = Border

The resulting type after applying the * operator.

impl Mul<u32> for Border[src]

type Output = Border

The resulting type after applying the * operator.

impl<'a> Mul<u32> for &'a Border[src]

type Output = Border

The resulting type after applying the * operator.

impl<'a> Mul<u32> for &'a mut Border[src]

type Output = Border

The resulting type after applying the * operator.

impl MulAssign<&'_ mut u32> for Border[src]

impl<'a> MulAssign<&'_ mut u32> for &'a mut Border[src]

impl MulAssign<&'_ u32> for Border[src]

impl<'a> MulAssign<&'_ u32> for &'a mut Border[src]

impl MulAssign<u32> for Border[src]

impl<'a> MulAssign<u32> for &'a mut Border[src]

impl PartialEq<Border> for Border[src]

impl StructuralPartialEq for Border[src]

Auto Trait Implementations

impl RefUnwindSafe for Border

impl Send for Border

impl Sync for Border

impl Unpin for Border

impl UnwindSafe for Border

Blanket Implementations

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

impl<E, T> AtomState<E, T> for T where
    E: Env,
    T: Clone
[src]

impl<E, T> AtomStateMut<E, T> for T where
    E: Env,
    T: Clone
[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> FromInto<U> for T where
    T: From<U> + Into<U>, 
[src]

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

impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[src]

impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
    T: StyleSelectorAppend<S, E>,
    S: StyleSelectag<E>, 
[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.