pub struct TextGlyph {
pub source: Range<usize>,
pub line: usize,
pub family: Arc<str>,
pub bounds: Rect,
/* private fields */
}Expand description
Public glyph provenance and logical ink/hit bounds from one paragraph layout.
Fields§
§source: Range<usize>Original UTF-8 cluster byte range.
line: usizeWrapped visual line number.
family: Arc<str>Explicit/fallback font family selected by the shaper.
bounds: RectLocal glyph hit/ink bounds, including baseline placement.
Trait Implementations§
Auto Trait Implementations§
impl Forget for TextGlyph
impl Freeze for TextGlyph
impl Move for TextGlyph
impl RefUnwindSafe for TextGlyph
impl Send for TextGlyph
impl Sync for TextGlyph
impl Unpin for TextGlyph
impl UnsafeUnpin for TextGlyph
impl UnwindSafe for TextGlyph
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