pub struct TextLayout {
pub clusters: Vec<ClusterInfo>,
pub lines: Vec<LineInfo>,
pub font_size: f32,
}Expand description
Cluster and line positions, matching TextRasterizer::rasterize.
Fields§
§clusters: Vec<ClusterInfo>Clusters (the unit of letter spacing) in logical order.
lines: Vec<LineInfo>Lines, top to bottom.
font_size: f32Font size in pixels.
Trait Implementations§
Source§impl Clone for TextLayout
impl Clone for TextLayout
Source§impl Debug for TextLayout
impl Debug for TextLayout
Source§impl PartialEq for TextLayout
impl PartialEq for TextLayout
impl StructuralPartialEq for TextLayout
Auto Trait Implementations§
impl Forget for TextLayout
impl Freeze for TextLayout
impl Move for TextLayout
impl RefUnwindSafe for TextLayout
impl Send for TextLayoutwhere
RawVecInner: Send,
impl Sync for TextLayoutwhere
RawVecInner: Sync,
impl Unpin for TextLayout
impl UnsafeUnpin for TextLayoutwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ClusterInfo>: UnsafeUnpin,
PhantomData<LineInfo>: UnsafeUnpin,
impl UnwindSafe for TextLayoutwhere
RawVecInner: UnwindSafe,
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