pub struct ShapedGlyph {
pub id: u32,
pub x: f32,
pub advance: f32,
pub text: Range<usize>,
}Expand description
One glyph of a TextLayout, as reported by TextLayout::glyphs.
Fields§
§id: u32The glyph’s index in the font.
x: f32Horizontal position, from the left of the layout.
advance: f32How far the next glyph advances.
text: Range<usize>Byte range of the source text this glyph’s cluster stands for.
Trait Implementations§
Source§impl Clone for ShapedGlyph
impl Clone for ShapedGlyph
Source§fn clone(&self) -> ShapedGlyph
fn clone(&self) -> ShapedGlyph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapedGlyph
impl Debug for ShapedGlyph
Source§impl PartialEq for ShapedGlyph
impl PartialEq for ShapedGlyph
impl StructuralPartialEq 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