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(Codepoint)
GlyphId(GlyphId)
Trait Implementations
impl Debug for CodepointOrGlyphId
[src]
impl Clone for CodepointOrGlyphId
[src]
fn clone(&self) -> CodepointOrGlyphId
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for CodepointOrGlyphId
[src]
impl From<Codepoint> for CodepointOrGlyphId
[src]
fn from(c: Codepoint) -> CodepointOrGlyphId
Performs the conversion.
impl From<GlyphId> for CodepointOrGlyphId
[src]
fn from(g: GlyphId) -> CodepointOrGlyphId
Performs the conversion.
impl From<char> for CodepointOrGlyphId
[src]
fn from(c: char) -> CodepointOrGlyphId
Performs the conversion.