[−][src]Struct guion::util::border::Border
Fields
left: u32
right: u32
top: u32
bottom: 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.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ Border> for &'a Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ Border> for &'a mut Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'_> Add<&'_ mut Border> for Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ mut Border> for &'a Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl<'a, '_> Add<&'_ mut Border> for &'a mut Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl Add<Border> for Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'a> Add<Border> for &'a Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'a> Add<Border> for &'a mut Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'_> AddAssign<&'_ Border> for Size
[src]
fn add_assign(&mut self, r: &Border)
[src]
impl<'a, '_> AddAssign<&'_ Border> for &'a mut Size
[src]
fn add_assign(&mut self, r: &Border)
[src]
impl<'_> AddAssign<&'_ mut Border> for Size
[src]
fn add_assign(&mut self, r: &mut Border)
[src]
impl<'a, '_> AddAssign<&'_ mut Border> for &'a mut Size
[src]
fn add_assign(&mut self, r: &mut Border)
[src]
impl AddAssign<Border> for Size
[src]
fn add_assign(&mut self, r: Border)
[src]
impl<'a> AddAssign<Border> for &'a mut Size
[src]
fn add_assign(&mut self, r: Border)
[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.
fn div(self, r: &mut u32) -> Self::Output
[src]
impl<'a, '_> Div<&'_ mut u32> for &'a Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: &mut u32) -> Self::Output
[src]
impl<'a, '_> Div<&'_ mut u32> for &'a mut Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: &mut u32) -> Self::Output
[src]
impl<'_> Div<&'_ u32> for Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: &u32) -> Self::Output
[src]
impl<'a, '_> Div<&'_ u32> for &'a Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: &u32) -> Self::Output
[src]
impl<'a, '_> Div<&'_ u32> for &'a mut Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: &u32) -> Self::Output
[src]
impl Div<u32> for Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: u32) -> Self::Output
[src]
impl<'a> Div<u32> for &'a Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: u32) -> Self::Output
[src]
impl<'a> Div<u32> for &'a mut Border
[src]
type Output = Border
The resulting type after applying the /
operator.
fn div(self, r: u32) -> Self::Output
[src]
impl<'_> DivAssign<&'_ mut u32> for Border
[src]
fn div_assign(&mut self, r: &mut u32)
[src]
impl<'a, '_> DivAssign<&'_ mut u32> for &'a mut Border
[src]
fn div_assign(&mut self, r: &mut u32)
[src]
impl<'_> DivAssign<&'_ u32> for Border
[src]
fn div_assign(&mut self, r: &u32)
[src]
impl<'a, '_> DivAssign<&'_ u32> for &'a mut Border
[src]
fn div_assign(&mut self, r: &u32)
[src]
impl DivAssign<u32> for Border
[src]
fn div_assign(&mut self, r: u32)
[src]
impl<'a> DivAssign<u32> for &'a mut Border
[src]
fn div_assign(&mut self, r: u32)
[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]
T: 'static + ?Sized,
impl<T> AtomState<T> for T where
T: Copy,
[src]
T: Copy,
impl<T> AtomStateMut<T> for T where
T: Copy,
[src]
T: Copy,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,