pub struct TextMetric {
pub ascent: f64,
pub descent: f64,
pub width: f64,
}Fields§
§ascent: f64§descent: f64§width: f64Trait Implementations§
Source§impl Clone for TextMetric
impl Clone for TextMetric
Source§fn clone(&self) -> TextMetric
fn clone(&self) -> TextMetric
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 moreSource§impl Debug for TextMetric
impl Debug for TextMetric
Source§impl PartialEq for TextMetric
impl PartialEq for TextMetric
impl StructuralPartialEq for TextMetric
Auto Trait Implementations§
impl Freeze for TextMetric
impl RefUnwindSafe for TextMetric
impl Send for TextMetric
impl Sync for TextMetric
impl Unpin for TextMetric
impl UnsafeUnpin 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