Struct rstk::font::TkFontMetrics
source · pub struct TkFontMetrics {
pub ascent: u64,
pub descent: u64,
pub line_space: u64,
pub fixed: bool,
}
Expand description
Information on a font’s metrics.
Fields§
§ascent: u64
§descent: u64
§line_space: u64
§fixed: bool
Trait Implementations§
source§impl Clone for TkFontMetrics
impl Clone for TkFontMetrics
source§fn clone(&self) -> TkFontMetrics
fn clone(&self) -> TkFontMetrics
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 TkFontMetrics
impl Debug for TkFontMetrics
source§impl Default for TkFontMetrics
impl Default for TkFontMetrics
source§fn default() -> TkFontMetrics
fn default() -> TkFontMetrics
Returns the “default value” for a type. Read more
source§impl Display for TkFontMetrics
impl Display for TkFontMetrics
source§impl FromStr for TkFontMetrics
impl FromStr for TkFontMetrics
source§impl PartialEq for TkFontMetrics
impl PartialEq for TkFontMetrics
source§fn eq(&self, other: &TkFontMetrics) -> bool
fn eq(&self, other: &TkFontMetrics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TkFontMetrics
Auto Trait Implementations§
impl RefUnwindSafe for TkFontMetrics
impl Send for TkFontMetrics
impl Sync for TkFontMetrics
impl Unpin for TkFontMetrics
impl UnwindSafe for TkFontMetrics
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