Struct fontkit::CharMetrics
source · pub struct CharMetrics {
pub c: char,
pub advanced_x: u16,
pub lsb: i16,
pub units: f32,
pub height: i16,
pub missing: bool,
/* private fields */
}Expand description
Metrics for a single unicode charactor in a certain font
Fields§
§c: char§advanced_x: u16§lsb: i16§units: f32§height: i16§missing: boolTrait Implementations§
source§impl Clone for CharMetrics
impl Clone for CharMetrics
source§fn clone(&self) -> CharMetrics
fn clone(&self) -> CharMetrics
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 CharMetrics
impl Debug for CharMetrics
impl Copy for CharMetrics
Auto Trait Implementations§
impl Freeze for CharMetrics
impl RefUnwindSafe for CharMetrics
impl Send for CharMetrics
impl Sync for CharMetrics
impl Unpin for CharMetrics
impl UnwindSafe for CharMetrics
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