Struct rusttype::HMetrics [−][src]
The "horizontal metrics" of a glyph. This is useful for calculating the horizontal offset of a glyph from the previous one in a string when laying a string out horizontally.
Fields
advance_width: f32
The horizontal offset that the origin of the next glyph should be from the origin of this glyph.
left_side_bearing: f32
The horizontal offset between the origin of this glyph and the leftmost edge/point of the glyph.
Trait Implementations
impl Copy for HMetrics[src]
impl Copy for HMetricsimpl Clone for HMetrics[src]
impl Clone for HMetricsfn clone(&self) -> HMetrics[src]
fn clone(&self) -> HMetricsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for HMetrics[src]
impl Debug for HMetricsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for HMetrics[src]
impl PartialEq for HMetricsfn eq(&self, other: &HMetrics) -> bool[src]
fn eq(&self, other: &HMetrics) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &HMetrics) -> bool[src]
fn ne(&self, other: &HMetrics) -> boolThis method tests for !=.
impl PartialOrd for HMetrics[src]
impl PartialOrd for HMetricsfn partial_cmp(&self, other: &HMetrics) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &HMetrics) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &HMetrics) -> bool[src]
fn lt(&self, other: &HMetrics) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &HMetrics) -> bool[src]
fn le(&self, other: &HMetrics) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &HMetrics) -> bool[src]
fn gt(&self, other: &HMetrics) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &HMetrics) -> bool[src]
fn ge(&self, other: &HMetrics) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more