Enum rusttype_bugfix_19072017::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

Trait Implementations

impl Copy for CodepointOrGlyphId
[src]

impl Clone for CodepointOrGlyphId
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CodepointOrGlyphId
[src]

Formats the value using the given formatter.

impl PartialEq for CodepointOrGlyphId
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for CodepointOrGlyphId
[src]

impl Hash for CodepointOrGlyphId
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for CodepointOrGlyphId
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for CodepointOrGlyphId
[src]

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl From<Codepoint> for CodepointOrGlyphId
[src]

Performs the conversion.

impl From<GlyphId> for CodepointOrGlyphId
[src]

Performs the conversion.

impl From<char> for CodepointOrGlyphId
[src]

Performs the conversion.