Struct ab_glyph::PxScaleFactor
source · pub struct PxScaleFactor {
pub horizontal: f32,
pub vertical: f32,
}
Expand description
2D scale factors for use with unscaled metrics.
Fields§
§horizontal: f32
§vertical: f32
Trait Implementations§
source§impl Clone for PxScaleFactor
impl Clone for PxScaleFactor
source§fn clone(&self) -> PxScaleFactor
fn clone(&self) -> PxScaleFactor
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 PxScaleFactor
impl Debug for PxScaleFactor
source§impl PartialEq for PxScaleFactor
impl PartialEq for PxScaleFactor
source§fn eq(&self, other: &PxScaleFactor) -> bool
fn eq(&self, other: &PxScaleFactor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PxScaleFactor
impl PartialOrd for PxScaleFactor
source§fn partial_cmp(&self, other: &PxScaleFactor) -> Option<Ordering>
fn partial_cmp(&self, other: &PxScaleFactor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PxScaleFactor
impl StructuralPartialEq for PxScaleFactor
Auto Trait Implementations§
impl Freeze for PxScaleFactor
impl RefUnwindSafe for PxScaleFactor
impl Send for PxScaleFactor
impl Sync for PxScaleFactor
impl Unpin for PxScaleFactor
impl UnwindSafe for PxScaleFactor
Blanket Implementations§
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