Struct extendr_api::graphics::TextMetric
source · pub struct TextMetric {
pub ascent: f64,
pub descent: f64,
pub width: f64,
}
Fields§
§ascent: f64
§descent: f64
§width: f64
Trait Implementations§
source§impl Clone for TextMetric
impl Clone for TextMetric
source§fn clone(&self) -> TextMetric
fn clone(&self) -> TextMetric
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 TextMetric
impl Debug for TextMetric
source§impl PartialEq<TextMetric> for TextMetric
impl PartialEq<TextMetric> for TextMetric
source§fn eq(&self, other: &TextMetric) -> bool
fn eq(&self, other: &TextMetric) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.