pub struct ShapedRun {
pub glyphs: SmallVec<[ShapedGlyph; 8]>,
pub font_data: Arc<[u8]>,
}Expand description
A run of shaped glyphs sharing a single font face.
Fields§
§glyphs: SmallVec<[ShapedGlyph; 8]>Glyphs in this run, in logical order.
Uses SmallVec with an inline capacity of 8 to avoid heap allocation
for the common case of short runs.
font_data: Arc<[u8]>Raw font bytes used to shape this run.
Trait Implementations§
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