pub struct GlyphId(pub u16);
Expand description
Glyph id.
Example
use ab_glyph::{Font, FontRef, GlyphId};
let font = FontRef::try_from_slice(include_bytes!("../../dev/fonts/Exo2-Light.otf"))?;
let q_id: GlyphId = font.glyph_id('q');
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
source§impl Ord for GlyphId
impl Ord for GlyphId
source§impl PartialEq for GlyphId
impl PartialEq for GlyphId
source§impl PartialOrd for GlyphId
impl PartialOrd for GlyphId
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 Copy for GlyphId
impl Eq for GlyphId
impl StructuralEq for GlyphId
impl StructuralPartialEq for GlyphId
Auto Trait Implementations§
impl RefUnwindSafe for GlyphId
impl Send for GlyphId
impl Sync for GlyphId
impl Unpin for GlyphId
impl UnwindSafe for GlyphId
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