pub struct LineInfo {
pub clusters: Range<usize>,
pub left: f32,
pub width: f32,
pub baseline: f32,
}Expand description
One line of a TextLayout.
Fields§
§clusters: Range<usize>Cluster indices, in logical order.
left: f32Start in pixels from the layout box’s left edge.
width: f32Advance excluding trailing spaces.
baseline: f32Baseline in pixels from the layout box’s top.
Trait Implementations§
impl StructuralPartialEq for LineInfo
Auto Trait Implementations§
impl Freeze for LineInfo
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnsafeUnpin for LineInfo
impl UnwindSafe for LineInfo
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