pub struct Factor2d {
pub x: Factor,
pub y: Factor,
}Expand description
Scale factor applied to x and y dimensions.
Fields§
§x: FactorScale factor applied in the x dimension.
y: FactorScale 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 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 Eq 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 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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