Struct rusttype::GlyphId [−][src]
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 Copy for GlyphId[src]
impl Copy for GlyphIdimpl Clone for GlyphId[src]
impl Clone for GlyphIdfn clone(&self) -> GlyphId[src]
fn clone(&self) -> GlyphIdReturns 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[src]
impl Debug for GlyphIdfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for GlyphId[src]
impl PartialEq for GlyphIdfn eq(&self, other: &GlyphId) -> bool[src]
fn eq(&self, other: &GlyphId) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &GlyphId) -> bool[src]
fn ne(&self, other: &GlyphId) -> boolThis method tests for !=.
impl Eq for GlyphId[src]
impl Eq for GlyphIdimpl Hash for GlyphId[src]
impl Hash for GlyphIdfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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 PartialOrd for GlyphId[src]
impl PartialOrd for GlyphIdfn partial_cmp(&self, other: &GlyphId) -> Option<Ordering>[src]
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[src]
fn lt(&self, other: &GlyphId) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &GlyphId) -> bool[src]
fn le(&self, other: &GlyphId) -> boolThis 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[src]
fn gt(&self, other: &GlyphId) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &GlyphId) -> bool[src]
fn ge(&self, other: &GlyphId) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for GlyphId[src]
impl Ord for GlyphIdfn cmp(&self, other: &GlyphId) -> Ordering[src]
fn cmp(&self, other: &GlyphId) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl IntoGlyphId for GlyphId[src]
impl IntoGlyphId for GlyphIdfn into_glyph_id(self, _font: &Font) -> GlyphId[src]
fn into_glyph_id(self, _font: &Font) -> GlyphIdConvert self into a GlyphId, consulting the index map of font if necessary. Read more