Struct glow_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 · sourcefn 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 ==
. Read more
fn ne(&self, other: &SectionGlyph) -> bool
fn ne(&self, other: &SectionGlyph) -> bool
This method tests for !=
.
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl StructuralPartialEq for SectionGlyph
Auto Trait Implementations
impl RefUnwindSafe for SectionGlyph
impl Send for SectionGlyph
impl Sync for SectionGlyph
impl Unpin for SectionGlyph
impl UnwindSafe for SectionGlyph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more