pub struct HorizontalMetrics {
pub advance_width: f64,
pub left_side_bearing: f64,
}Expand description
The horizontal metrics for a glyph
Fields§
§advance_width: f64§left_side_bearing: f64Trait Implementations§
Source§impl Clone for HorizontalMetrics
impl Clone for HorizontalMetrics
Source§fn clone(&self) -> HorizontalMetrics
fn clone(&self) -> HorizontalMetrics
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 HorizontalMetrics
Source§impl Debug for HorizontalMetrics
impl Debug for HorizontalMetrics
Source§impl PartialEq for HorizontalMetrics
impl PartialEq for HorizontalMetrics
Source§fn eq(&self, other: &HorizontalMetrics) -> bool
fn eq(&self, other: &HorizontalMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HorizontalMetrics
Auto Trait Implementations§
impl Freeze for HorizontalMetrics
impl RefUnwindSafe for HorizontalMetrics
impl Send for HorizontalMetrics
impl Sync for HorizontalMetrics
impl Unpin for HorizontalMetrics
impl UnsafeUnpin for HorizontalMetrics
impl UnwindSafe for HorizontalMetrics
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