Struct gfx_glyph::SectionGlyph
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
from which it was derived.
Fields§
§section_index: usize
The SectionText
index.
byte_index: usize
The character byte index from the SectionText
text.
glyph: Glyph
A positioned glyph.
font_id: FontId
Font id.
Trait Implementations§
§impl Clone for SectionGlyph
impl Clone for SectionGlyph
§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 more§impl Debug for SectionGlyph
impl Debug for SectionGlyph
§impl PartialEq<SectionGlyph> for SectionGlyph
impl PartialEq<SectionGlyph> for SectionGlyph
§fn eq(&self, other: &SectionGlyph) -> bool
fn eq(&self, other: &SectionGlyph) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<SectionGlyph> for SectionGlyph
impl PartialOrd<SectionGlyph> for SectionGlyph
§fn partial_cmp(&self, other: &SectionGlyph) -> Option<Ordering>
fn partial_cmp(&self, other: &SectionGlyph) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more