pub struct Glyph {
pub id: u32,
pub x: f32,
pub y: f32,
}Expand description
A single positioned glyph within a GlyphRun.
Fields§
§id: u32Glyph ID within the run’s font.
x: f32X position, in the run’s local coordinate space (pre-transform).
y: f32Y position, in the run’s local coordinate space (pre-transform).
Trait Implementations§
impl Copy for Glyph
impl StructuralPartialEq for Glyph
Auto Trait Implementations§
impl Freeze for Glyph
impl RefUnwindSafe for Glyph
impl Send for Glyph
impl Sync for Glyph
impl Unpin for Glyph
impl UnsafeUnpin for Glyph
impl UnwindSafe for Glyph
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