pub struct ShapedRun {
pub glyphs: Vec<ShapedGlyph>,
pub total_advance: i32,
}Expand description
The result of shaping a text run.
Contains the positioned glyphs and aggregate metrics needed for layout.
Fields§
§glyphs: Vec<ShapedGlyph>Positioned glyphs in visual order.
total_advance: i32Total horizontal advance of all glyphs (sum of x_advance).
Implementations§
Trait Implementations§
impl Eq for ShapedRun
impl StructuralPartialEq for ShapedRun
Auto Trait Implementations§
impl Freeze for ShapedRun
impl RefUnwindSafe for ShapedRun
impl Send for ShapedRun
impl Sync for ShapedRun
impl Unpin for ShapedRun
impl UnsafeUnpin for ShapedRun
impl UnwindSafe for ShapedRun
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.