Struct guion::util::border::Border [−][src]
Fields
left: u32
right: u32
top: u32
bottom: 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.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'a> Add<&'_ Border> for &'a StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: &Border) -> Self::Output
[src]
impl<'a> Add<&'_ Border> for &'a mut StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: &Border) -> Self::Output
[src]
impl Add<&'_ mut Border> for StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl<'a> Add<&'_ mut Border> for &'a StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl<'a> Add<&'_ mut Border> for &'a mut StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: &mut Border) -> Self::Output
[src]
impl Add<Border> for StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'a> Add<Border> for &'a StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl<'a> Add<Border> for &'a mut StdGonstraints
[src]
type Output = StdGonstraints
The resulting type after applying the +
operator.
fn add(self, r: Border) -> Self::Output
[src]
impl AddAssign<&'_ Border> for StdGonstraints
[src]
fn add_assign(&mut self, r: &Border)
[src]
impl<'a> AddAssign<&'_ Border> for &'a mut StdGonstraints
[src]
fn add_assign(&mut self, r: &Border)
[src]
impl AddAssign<&'_ mut Border> for StdGonstraints
[src]
fn add_assign(&mut self, r: &mut Border)
[src]
impl<'a> AddAssign<&'_ mut Border> for &'a mut StdGonstraints
[src]
fn add_assign(&mut self, r: &mut Border)
[src]
impl AddAssign<Border> for StdGonstraints
[src]
fn add_assign(&mut self, r: Border)
[src]
impl<'a> AddAssign<Border> for &'a mut StdGonstraints
[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]
impl Mul<&'_ mut u32> for Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: &mut u32) -> Self::Output
[src]
impl<'a> Mul<&'_ mut u32> for &'a Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: &mut u32) -> Self::Output
[src]
impl<'a> Mul<&'_ mut u32> for &'a mut Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: &mut u32) -> Self::Output
[src]
impl Mul<&'_ u32> for Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: &u32) -> Self::Output
[src]
impl<'a> Mul<&'_ u32> for &'a Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: &u32) -> Self::Output
[src]
impl<'a> Mul<&'_ u32> for &'a mut Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: &u32) -> Self::Output
[src]
impl Mul<u32> for Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: u32) -> Self::Output
[src]
impl<'a> Mul<u32> for &'a Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: u32) -> Self::Output
[src]
impl<'a> Mul<u32> for &'a mut Border
[src]
type Output = Border
The resulting type after applying the *
operator.
fn mul(self, r: u32) -> Self::Output
[src]
impl MulAssign<&'_ mut u32> for Border
[src]
fn mul_assign(&mut self, r: &mut u32)
[src]
impl<'a> MulAssign<&'_ mut u32> for &'a mut Border
[src]
fn mul_assign(&mut self, r: &mut u32)
[src]
impl MulAssign<&'_ u32> for Border
[src]
fn mul_assign(&mut self, r: &u32)
[src]
impl<'a> MulAssign<&'_ u32> for &'a mut Border
[src]
fn mul_assign(&mut self, r: &u32)
[src]
impl MulAssign<u32> for Border
[src]
fn mul_assign(&mut self, r: u32)
[src]
impl<'a> MulAssign<u32> for &'a mut Border
[src]
fn mul_assign(&mut self, r: u32)
[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]
T: 'static + ?Sized,
impl<E, T> AtomState<E, T> for T where
E: Env,
T: Clone,
[src]
E: Env,
T: Clone,
impl<E, T> AtomStateMut<E, T> for T where
E: Env,
T: Clone,
[src]
E: Env,
T: Clone,
pub fn set_direct(&mut Self, T) -> Result<(), ()>
[src]
fn set(&mut self, v: T, _: &mut E::Context)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> FromInto<U> for T where
T: From<U> + Into<U>,
[src]
T: From<U> + Into<U>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &S)
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &[S])
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,