pub struct GlyphMetrics {
pub advance: f64,
pub ink_xmin: Option<f64>,
pub ink_ymin: Option<f64>,
pub ink_xmax: Option<f64>,
pub ink_ymax: Option<f64>,
}Expand description
One character metrics in em units (font +Y up).
Fields§
§advance: f64§ink_xmin: Option<f64>§ink_ymin: Option<f64>§ink_xmax: Option<f64>§ink_ymax: Option<f64>Implementations§
Trait Implementations§
Source§impl Clone for GlyphMetrics
impl Clone for GlyphMetrics
Source§fn clone(&self) -> GlyphMetrics
fn clone(&self) -> GlyphMetrics
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 GlyphMetrics
Auto Trait Implementations§
impl Freeze for GlyphMetrics
impl RefUnwindSafe for GlyphMetrics
impl Send for GlyphMetrics
impl Sync for GlyphMetrics
impl Unpin for GlyphMetrics
impl UnsafeUnpin for GlyphMetrics
impl UnwindSafe for GlyphMetrics
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