Struct glyph_brush_layout::SectionGlyph
source · 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: usizeThe index of the SectionText source for this glyph.
byte_index: usizeThe exact character byte index from the SectionText::text source for this glyph.
glyph: GlyphA positioned glyph.
font_id: FontIdFont 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§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 ==.source§impl PartialOrd for SectionGlyph
impl PartialOrd for SectionGlyph
source§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 moreimpl 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