pub struct FactorSideOffsets {
pub top: Factor,
pub right: Factor,
pub bottom: Factor,
pub left: Factor,
}Expand description
Scale factor applied to margins.
Fields§
§top: FactorFactor of top offset.
right: FactorFactor of right offset.
bottom: FactorFactor of bottom offset.
left: FactorFactor of left offset.
Implementations§
Source§impl FactorSideOffsets
impl FactorSideOffsets
Trait Implementations§
Source§impl Clone for FactorSideOffsets
impl Clone for FactorSideOffsets
Source§fn clone(&self) -> FactorSideOffsets
fn clone(&self) -> FactorSideOffsets
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FactorSideOffsets
impl Debug for FactorSideOffsets
Source§impl Div<FactorSideOffsets> for DipSideOffsets
impl Div<FactorSideOffsets> for DipSideOffsets
Source§fn div(self, rhs: FactorSideOffsets) -> DipSideOffsets
fn div(self, rhs: FactorSideOffsets) -> DipSideOffsets
Performs the
/ operation. Read moreSource§impl Div<FactorSideOffsets> for PxSideOffsets
impl Div<FactorSideOffsets> for PxSideOffsets
Source§fn div(self, rhs: FactorSideOffsets) -> PxSideOffsets
fn div(self, rhs: FactorSideOffsets) -> PxSideOffsets
Performs the
/ operation. Read moreSource§impl Div for FactorSideOffsets
impl Div for FactorSideOffsets
Source§type Output = FactorSideOffsets
type Output = FactorSideOffsets
The resulting type after applying the
/ operator.Source§fn div(self, rhs: FactorSideOffsets) -> FactorSideOffsets
fn div(self, rhs: FactorSideOffsets) -> FactorSideOffsets
Performs the
/ operation. Read moreSource§impl DivAssign<FactorSideOffsets> for DipSideOffsets
impl DivAssign<FactorSideOffsets> for DipSideOffsets
Source§fn div_assign(&mut self, rhs: FactorSideOffsets)
fn div_assign(&mut self, rhs: FactorSideOffsets)
Performs the
/= operation. Read moreSource§impl DivAssign<FactorSideOffsets> for PxSideOffsets
impl DivAssign<FactorSideOffsets> for PxSideOffsets
Source§fn div_assign(&mut self, rhs: FactorSideOffsets)
fn div_assign(&mut self, rhs: FactorSideOffsets)
Performs the
/= operation. Read moreSource§impl DivAssign for FactorSideOffsets
impl DivAssign for FactorSideOffsets
Source§fn div_assign(&mut self, rhs: FactorSideOffsets)
fn div_assign(&mut self, rhs: FactorSideOffsets)
Performs the
/= operation. Read moreSource§impl<T: Into<Factor>, R: Into<Factor>, B: Into<Factor>, L: Into<Factor>> From<(T, R, B, L)> for FactorSideOffsets
impl<T: Into<Factor>, R: Into<Factor>, B: Into<Factor>, L: Into<Factor>> From<(T, R, B, L)> for FactorSideOffsets
Source§fn from((top, right, bottom, left): (T, R, B, L)) -> Self
fn from((top, right, bottom, left): (T, R, B, L)) -> Self
New top, right, bottom, left.
Source§impl From<FactorPercent> for FactorSideOffsets
impl From<FactorPercent> for FactorSideOffsets
Source§fn from(percent: FactorPercent) -> Self
fn from(percent: FactorPercent) -> Self
All sides equal.
Source§impl Hash for FactorSideOffsets
impl Hash for FactorSideOffsets
Source§impl<T: Into<Factor>, R: Into<Factor>, B: Into<Factor>, L: Into<Factor>> IntoVar<FactorSideOffsets> for (T, R, B, L)
impl<T: Into<Factor>, R: Into<Factor>, B: Into<Factor>, L: Into<Factor>> IntoVar<FactorSideOffsets> for (T, R, B, L)
Source§fn into_var(self) -> Var<FactorSideOffsets>
fn into_var(self) -> Var<FactorSideOffsets>
New top, right, bottom, left.
Source§impl<TB: Into<Factor>, LR: Into<Factor>> IntoVar<FactorSideOffsets> for (TB, LR)
impl<TB: Into<Factor>, LR: Into<Factor>> IntoVar<FactorSideOffsets> for (TB, LR)
Source§fn into_var(self) -> Var<FactorSideOffsets>
fn into_var(self) -> Var<FactorSideOffsets>
New dimension, top-bottom, left-right.
Source§impl IntoVar<FactorSideOffsets> for Factor
impl IntoVar<FactorSideOffsets> for Factor
Source§fn into_var(self) -> Var<FactorSideOffsets>
fn into_var(self) -> Var<FactorSideOffsets>
All sides equal.
Source§impl IntoVar<FactorSideOffsets> for FactorPercent
impl IntoVar<FactorSideOffsets> for FactorPercent
Source§fn into_var(self) -> Var<FactorSideOffsets>
fn into_var(self) -> Var<FactorSideOffsets>
All sides equal.
Source§impl Mul<FactorSideOffsets> for DipSideOffsets
impl Mul<FactorSideOffsets> for DipSideOffsets
Source§fn mul(self, rhs: FactorSideOffsets) -> DipSideOffsets
fn mul(self, rhs: FactorSideOffsets) -> DipSideOffsets
Performs the
* operation. Read moreSource§impl Mul<FactorSideOffsets> for PxSideOffsets
impl Mul<FactorSideOffsets> for PxSideOffsets
Source§fn mul(self, rhs: FactorSideOffsets) -> PxSideOffsets
fn mul(self, rhs: FactorSideOffsets) -> PxSideOffsets
Performs the
* operation. Read moreSource§impl Mul for FactorSideOffsets
impl Mul for FactorSideOffsets
Source§type Output = FactorSideOffsets
type Output = FactorSideOffsets
The resulting type after applying the
* operator.Source§fn mul(self, rhs: FactorSideOffsets) -> FactorSideOffsets
fn mul(self, rhs: FactorSideOffsets) -> FactorSideOffsets
Performs the
* operation. Read moreSource§impl MulAssign<FactorSideOffsets> for DipSideOffsets
impl MulAssign<FactorSideOffsets> for DipSideOffsets
Source§fn mul_assign(&mut self, rhs: FactorSideOffsets)
fn mul_assign(&mut self, rhs: FactorSideOffsets)
Performs the
*= operation. Read moreSource§impl MulAssign<FactorSideOffsets> for PxSideOffsets
impl MulAssign<FactorSideOffsets> for PxSideOffsets
Source§fn mul_assign(&mut self, rhs: FactorSideOffsets)
fn mul_assign(&mut self, rhs: FactorSideOffsets)
Performs the
*= operation. Read moreSource§impl MulAssign for FactorSideOffsets
impl MulAssign for FactorSideOffsets
Source§fn mul_assign(&mut self, rhs: FactorSideOffsets)
fn mul_assign(&mut self, rhs: FactorSideOffsets)
Performs the
*= operation. Read moreSource§impl PartialEq for FactorSideOffsets
impl PartialEq for FactorSideOffsets
impl Copy for FactorSideOffsets
impl Eq for FactorSideOffsets
impl<T: Into<Factor>, R: Into<Factor>, B: Into<Factor>, L: Into<Factor>> IntoValue<FactorSideOffsets> for (T, R, B, L)
impl<TB: Into<Factor>, LR: Into<Factor>> IntoValue<FactorSideOffsets> for (TB, LR)
impl IntoValue<FactorSideOffsets> for Factor
impl IntoValue<FactorSideOffsets> for FactorPercent
impl StructuralPartialEq for FactorSideOffsets
Auto Trait Implementations§
impl Freeze for FactorSideOffsets
impl RefUnwindSafe for FactorSideOffsets
impl Send for FactorSideOffsets
impl Sync for FactorSideOffsets
impl Unpin for FactorSideOffsets
impl UnwindSafe for FactorSideOffsets
Blanket Implementations§
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Clone the value.
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
Swap value with
other if both are of the same type.Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more