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 for TextMetric
impl PartialEq 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 ==
.impl StructuralPartialEq for TextMetric
Auto Trait Implementations§
impl RefUnwindSafe for TextMetric
impl Send for TextMetric
impl Sync for TextMetric
impl Unpin for TextMetric
impl UnwindSafe for TextMetric
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