Trait AnyMapGroup

Source
trait AnyMapGroup {
    const IS_CONSTANT: bool;

    // Required methods
    fn start_char_code(&self) -> u32;
    fn end_char_code(&self) -> u32;
    fn ref_glyph_id(&self) -> u32;

    // Provided method
    fn compute_glyph_id(
        codepoint: u32,
        start_char_code: u32,
        ref_glyph_id: u32,
    ) -> GlyphId { ... }
}
Expand description

Trait to unify constant and sequential map groups.

Required Associated Constants§

Required Methods§

Source

fn start_char_code(&self) -> u32

Source

fn end_char_code(&self) -> u32

Source

fn ref_glyph_id(&self) -> u32

Either start glyph id for a sequential group or just glyph id for a constant group.

Provided Methods§

Source

fn compute_glyph_id( codepoint: u32, start_char_code: u32, ref_glyph_id: u32, ) -> GlyphId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§