pub struct ShapedGlyph {
pub id: GlyphId,
pub position: Point<Pixels>,
pub index: usize,
pub is_emoji: bool,
}Expand description
A single glyph, ready to paint.
Fields§
§id: GlyphIdThe ID for this glyph, as determined by the text system.
position: Point<Pixels>The position of this glyph in its containing line.
index: usizeThe index of this glyph in the original text.
is_emoji: boolWhether this glyph is an emoji
Trait Implementations§
Source§impl Clone for ShapedGlyph
impl Clone for ShapedGlyph
Auto Trait Implementations§
impl Freeze for ShapedGlyph
impl RefUnwindSafe for ShapedGlyph
impl Send for ShapedGlyph
impl Sync for ShapedGlyph
impl Unpin for ShapedGlyph
impl UnsafeUnpin for ShapedGlyph
impl UnwindSafe for ShapedGlyph
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