Enum rusttype::CodepointOrGlyphId [] [src]

pub enum CodepointOrGlyphId {
    Codepoint(Codepoint),
    GlyphId(GlyphId),
}

Represents either a Unicode code point, or a glyph identifier for a font.

This is used as input for functions that can accept code points or glyph identifiers.

You typically won't construct this type directly, instead relying on From and Into.

Variants

Codepoint
GlyphId

Trait Implementations

impl From<Codepoint> for CodepointOrGlyphId

fn from(c: Codepoint) -> CodepointOrGlyphId

impl From<GlyphId> for CodepointOrGlyphId

fn from(g: GlyphId) -> CodepointOrGlyphId

impl From<char> for CodepointOrGlyphId

fn from(c: char) -> CodepointOrGlyphId

Derived Implementations

impl Ord for CodepointOrGlyphId

fn cmp(&self, __arg_0: &CodepointOrGlyphId) -> Ordering

impl PartialOrd for CodepointOrGlyphId

fn partial_cmp(&self, __arg_0: &CodepointOrGlyphId) -> Option<Ordering>

fn lt(&self, __arg_0: &CodepointOrGlyphId) -> bool

fn le(&self, __arg_0: &CodepointOrGlyphId) -> bool

fn gt(&self, __arg_0: &CodepointOrGlyphId) -> bool

fn ge(&self, __arg_0: &CodepointOrGlyphId) -> bool

impl Hash for CodepointOrGlyphId

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for CodepointOrGlyphId

impl PartialEq for CodepointOrGlyphId

fn eq(&self, __arg_0: &CodepointOrGlyphId) -> bool

fn ne(&self, __arg_0: &CodepointOrGlyphId) -> bool

impl Debug for CodepointOrGlyphId

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for CodepointOrGlyphId

fn clone(&self) -> CodepointOrGlyphId

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for CodepointOrGlyphId