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

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

Fields

left: u32right: u32top: u32bottom: u32

Methods

impl Border[src]

pub const fn new(left: u32, right: u32, top: u32, bottom: 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 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 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]

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