Struct floem_cosmic_text::Metrics
source · pub struct Metrics {
pub font_size: f32,
pub line_height: f32,
}
Expand description
Metrics of text
Fields§
§font_size: f32
Font size in pixels
line_height: f32
Line height in pixels
Implementations§
Trait Implementations§
source§impl PartialEq for Metrics
impl PartialEq for Metrics
impl Copy for Metrics
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
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