Struct zng_layout::unit::Factor2d
source · pub struct Factor2d {
pub x: Factor,
pub y: Factor,
}
Expand description
Scale factor applied to x and y dimensions.
Fields§
§x: Factor
Scale factor applied in the x dimension.
y: Factor
Scale factor applied in the y dimension.
Implementations§
Trait Implementations§
source§impl DivAssign<Factor> for Factor2d
impl DivAssign<Factor> for Factor2d
source§fn div_assign(&mut self, rhs: Factor)
fn div_assign(&mut self, rhs: Factor)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for DipPoint
impl DivAssign<Factor2d> for DipPoint
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for PxPoint
impl DivAssign<Factor2d> for PxPoint
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for DipRect
impl DivAssign<Factor2d> for DipRect
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for PxRect
impl DivAssign<Factor2d> for PxRect
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for DipSize
impl DivAssign<Factor2d> for DipSize
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for PxSize
impl DivAssign<Factor2d> for PxSize
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for DipVector
impl DivAssign<Factor2d> for DipVector
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for PxVector
impl DivAssign<Factor2d> for PxVector
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign for Factor2d
impl DivAssign for Factor2d
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl From<FactorPercent> for Factor2d
impl From<FactorPercent> for Factor2d
source§fn from(xy: FactorPercent) -> Self
fn from(xy: FactorPercent) -> Self
Converts to this type from the input type.
source§impl IntoVar<Factor2d> for FactorPercent
impl IntoVar<Factor2d> for FactorPercent
source§impl MulAssign<Factor> for Factor2d
impl MulAssign<Factor> for Factor2d
source§fn mul_assign(&mut self, rhs: Factor)
fn mul_assign(&mut self, rhs: Factor)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for DipPoint
impl MulAssign<Factor2d> for DipPoint
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for PxPoint
impl MulAssign<Factor2d> for PxPoint
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for DipRect
impl MulAssign<Factor2d> for DipRect
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for PxRect
impl MulAssign<Factor2d> for PxRect
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for DipSize
impl MulAssign<Factor2d> for DipSize
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for PxSize
impl MulAssign<Factor2d> for PxSize
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for DipVector
impl MulAssign<Factor2d> for DipVector
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for PxVector
impl MulAssign<Factor2d> for PxVector
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign for Factor2d
impl MulAssign for Factor2d
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moreimpl Copy for Factor2d
impl IntoValue<Align> for Factor2d
impl<X: Into<Factor>, Y: Into<Factor>> IntoValue<Factor2d> for (X, Y)
impl IntoValue<Factor2d> for Factor
impl IntoValue<Factor2d> for FactorPercent
impl IntoValue<Size> for Factor2d
impl StructuralPartialEq for Factor2d
Auto Trait Implementations§
impl Freeze for Factor2d
impl RefUnwindSafe for Factor2d
impl Send for Factor2d
impl Sync for Factor2d
impl Unpin for Factor2d
impl UnwindSafe for Factor2d
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