pub struct TextMetrics {
pub width: usize,
pub height: usize,
}
Fields§
§width: usize
§height: usize
Trait Implementations§
Source§impl Clone for TextMetrics
impl Clone for TextMetrics
Source§fn clone(&self) -> TextMetrics
fn clone(&self) -> TextMetrics
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 TextMetrics
impl Debug for TextMetrics
Source§impl Default for TextMetrics
impl Default for TextMetrics
Source§fn default() -> TextMetrics
fn default() -> TextMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextMetrics
impl<'de> Deserialize<'de> for TextMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TextMetrics
impl Hash for TextMetrics
Source§impl Ord for TextMetrics
impl Ord for TextMetrics
Source§fn cmp(&self, other: &TextMetrics) -> Ordering
fn cmp(&self, other: &TextMetrics) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TextMetrics
impl PartialEq for TextMetrics
Source§impl PartialOrd for TextMetrics
impl PartialOrd for TextMetrics
Source§impl Serialize for TextMetrics
impl Serialize for TextMetrics
impl Copy for TextMetrics
impl Eq for TextMetrics
impl StructuralPartialEq for TextMetrics
Auto Trait Implementations§
impl Freeze for TextMetrics
impl RefUnwindSafe for TextMetrics
impl Send for TextMetrics
impl Sync for TextMetrics
impl Unpin for TextMetrics
impl UnwindSafe for TextMetrics
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