pub struct LineMetrics {
pub line_count: u32,
pub widest: f32,
pub height: f32,
}Expand description
Lines of a shaped text at one wrapping width (ShapedText::lines_at).
Fields§
§line_count: u32Number of lines, as TextMeasure::line_count counts them.
widest: f32The widest line’s advance, trailing spaces left out.
height: f32Every line’s em box, unrounded: the rasterizer’s box height before it is rounded up.
Trait Implementations§
Source§impl Clone for LineMetrics
impl Clone for LineMetrics
impl Copy for LineMetrics
Source§impl Debug for LineMetrics
impl Debug for LineMetrics
Source§impl PartialEq for LineMetrics
impl PartialEq for LineMetrics
impl StructuralPartialEq for LineMetrics
Auto Trait Implementations§
impl Freeze for LineMetrics
impl RefUnwindSafe for LineMetrics
impl Send for LineMetrics
impl Sync for LineMetrics
impl Unpin for LineMetrics
impl UnsafeUnpin for LineMetrics
impl UnwindSafe for LineMetrics
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