Struct nannou::ui::prelude::text::GlyphId [−]
pub struct GlyphId(pub u32);
Represents a glyph identifier for a particular font. This identifier will not necessarily correspond to the correct glyph in a font other than the one that it was obtained from.
Trait Implementations
impl PartialOrd<GlyphId> for GlyphId
impl PartialOrd<GlyphId> for GlyphId
fn partial_cmp(&self, other: &GlyphId) -> Option<Ordering>
fn partial_cmp(&self, other: &GlyphId) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &GlyphId) -> bool
fn lt(&self, other: &GlyphId) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &GlyphId) -> bool
fn le(&self, other: &GlyphId) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &GlyphId) -> bool
fn gt(&self, other: &GlyphId) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &GlyphId) -> bool
fn ge(&self, other: &GlyphId) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for GlyphId
impl Hash for GlyphId
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for GlyphId
impl Clone for GlyphId
fn clone(&self) -> GlyphId
fn clone(&self) -> GlyphId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for GlyphId
impl Debug for GlyphId
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for GlyphId
impl Copy for GlyphId
impl Ord for GlyphId
impl Ord for GlyphId
fn cmp(&self, other: &GlyphId) -> Ordering
fn cmp(&self, other: &GlyphId) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Eq for GlyphId
impl Eq for GlyphId
impl PartialEq<GlyphId> for GlyphId
impl PartialEq<GlyphId> for GlyphId
fn eq(&self, other: &GlyphId) -> bool
fn eq(&self, other: &GlyphId) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GlyphId) -> bool
fn ne(&self, other: &GlyphId) -> bool
This method tests for !=
.
impl IntoGlyphId for GlyphId
impl IntoGlyphId for GlyphId
fn into_glyph_id(self, _font: &Font) -> GlyphId
fn into_glyph_id(self, _font: &Font) -> GlyphId
Convert self
into a GlyphId
, consulting the index map of font
if necessary. Read more