pub struct SectionGlyph {
pub section_index: usize,
pub byte_index: usize,
pub glyph: Glyph,
pub font_id: FontId,
}
Expand description
A positioned glyph with info relating to the SectionText
(or glyph_brush Section::text
)
from which it was derived.
Fields§
§section_index: usize
The index of the SectionText
source for this glyph.
byte_index: usize
The exact character byte index from the SectionText::text
source for this glyph.
glyph: Glyph
A positioned glyph.
font_id: FontId
Font id.
Trait Implementations§
Source§impl Clone for SectionGlyph
impl Clone for SectionGlyph
Source§fn clone(&self) -> SectionGlyph
fn clone(&self) -> SectionGlyph
Returns a copy of the value. Read more
1.0.0 · 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 SectionGlyph
impl Debug for SectionGlyph
Source§impl PartialEq for SectionGlyph
impl PartialEq for SectionGlyph
Source§impl PartialOrd for SectionGlyph
impl PartialOrd for SectionGlyph
impl StructuralPartialEq for SectionGlyph
Auto Trait Implementations§
impl Freeze for SectionGlyph
impl RefUnwindSafe for SectionGlyph
impl Send for SectionGlyph
impl Sync for SectionGlyph
impl Unpin for SectionGlyph
impl UnwindSafe for SectionGlyph
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