Struct zng_layout::unit::FactorSideOffsets
source · pub struct FactorSideOffsets {
pub top: Factor,
pub right: Factor,
pub bottom: Factor,
pub left: Factor,
}
Expand description
Scale factor applied to margins.
Fields§
§top: Factor
Factor of top offset.
right: Factor
Factor of right offset.
bottom: Factor
Factor of bottom offset.
left: Factor
Factor 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 copy 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<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§impl IntoVar<FactorSideOffsets> for Factor
impl IntoVar<FactorSideOffsets> for Factor
source§impl IntoVar<FactorSideOffsets> for FactorPercent
impl IntoVar<FactorSideOffsets> for FactorPercent
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<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 Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Access to mut
dyn Any
methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
Clone the value into a new boxed
LocalVar<Self>
.source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self
equals other
.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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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