[][src]Enum rusttype::CodepointOrGlyphId

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 Eq for CodepointOrGlyphId[src]

impl Clone for CodepointOrGlyphId[src]

impl PartialOrd<CodepointOrGlyphId> for CodepointOrGlyphId[src]

impl Ord for CodepointOrGlyphId[src]

impl PartialEq<CodepointOrGlyphId> for CodepointOrGlyphId[src]

impl From<Codepoint> for CodepointOrGlyphId[src]

impl From<GlyphId> for CodepointOrGlyphId[src]

impl From<char> for CodepointOrGlyphId[src]

impl Copy for CodepointOrGlyphId[src]

impl Hash for CodepointOrGlyphId[src]

impl Debug for CodepointOrGlyphId[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]