pub struct FaceMetrics {
pub upem: f64,
pub ascent: f64,
pub descent: f64,
pub line_gap: f64,
pub cap_height: f64,
pub x_height: f64,
pub stem_em: f64,
}Expand description
Typographic constants in em units (font +Y up).
Fields§
§upem: f64§ascent: f64§descent: f64§line_gap: f64§cap_height: f64§x_height: f64§stem_em: f64Trait Implementations§
Source§impl Clone for FaceMetrics
impl Clone for FaceMetrics
Source§fn clone(&self) -> FaceMetrics
fn clone(&self) -> FaceMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FaceMetrics
Auto Trait Implementations§
impl Freeze for FaceMetrics
impl RefUnwindSafe for FaceMetrics
impl Send for FaceMetrics
impl Sync for FaceMetrics
impl Unpin for FaceMetrics
impl UnsafeUnpin for FaceMetrics
impl UnwindSafe for FaceMetrics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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