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 Point2D<Dip, Dip>
impl DivAssign<Factor2d> for Point2D<Dip, Dip>
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for Point2D<Px, Px>
impl DivAssign<Factor2d> for Point2D<Px, Px>
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for Rect<Dip, Dip>
impl DivAssign<Factor2d> for Rect<Dip, Dip>
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for Rect<Px, Px>
impl DivAssign<Factor2d> for Rect<Px, Px>
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for Size2D<Dip, Dip>
impl DivAssign<Factor2d> for Size2D<Dip, Dip>
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for Size2D<Px, Px>
impl DivAssign<Factor2d> for Size2D<Px, Px>
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for Vector2D<Dip, Dip>
impl DivAssign<Factor2d> for Vector2D<Dip, Dip>
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl DivAssign<Factor2d> for Vector2D<Px, Px>
impl DivAssign<Factor2d> for Vector2D<Px, Px>
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) -> Factor2d
fn from(xy: FactorPercent) -> Factor2d
Converts to this type from the input type.
source§impl IntoVar<Factor2d> for FactorPercent
impl IntoVar<Factor2d> for FactorPercent
source§fn into_var(self) -> <FactorPercent as IntoVar<Factor2d>>::Var
fn into_var(self) -> <FactorPercent as IntoVar<Factor2d>>::Var
Converts the source value into a var.
source§fn into_boxed_var(self) -> Box<dyn VarBoxed<T>>where
Self: Sized,
fn into_boxed_var(self) -> Box<dyn VarBoxed<T>>where
Self: Sized,
Converts into
BoxedVar<T>
. Read moresource§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 Point2D<Dip, Dip>
impl MulAssign<Factor2d> for Point2D<Dip, Dip>
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for Point2D<Px, Px>
impl MulAssign<Factor2d> for Point2D<Px, Px>
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for Rect<Dip, Dip>
impl MulAssign<Factor2d> for Rect<Dip, Dip>
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for Rect<Px, Px>
impl MulAssign<Factor2d> for Rect<Px, Px>
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for Size2D<Dip, Dip>
impl MulAssign<Factor2d> for Size2D<Dip, Dip>
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for Size2D<Px, Px>
impl MulAssign<Factor2d> for Size2D<Px, Px>
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for Vector2D<Dip, Dip>
impl MulAssign<Factor2d> for Vector2D<Dip, Dip>
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read moresource§impl MulAssign<Factor2d> for Vector2D<Px, Px>
impl MulAssign<Factor2d> for Vector2D<Px, Px>
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, Y> 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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
)source§impl<T> DataNoteValue for T
impl<T> DataNoteValue for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§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> 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