Struct TextSize
pub struct TextSize { /* private fields */ }Implementations§
§impl TextSize
impl TextSize
pub fn new( font_size_px: f64, line_height_px: f64, ) -> Result<TextSize, ReadableTextError>
pub fn line_height_ratio(&self) -> f64
Trait Implementations§
impl Copy for TextSize
impl StructuralPartialEq for TextSize
Auto Trait Implementations§
impl Freeze for TextSize
impl RefUnwindSafe for TextSize
impl Send for TextSize
impl Sync for TextSize
impl Unpin for TextSize
impl UnsafeUnpin for TextSize
impl UnwindSafe for TextSize
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