# Trait LookupValue

    pub trait LookupValue:
        Copy
        + Scalar
        + AnyBitPattern {
        // Required methods
        fn from_u16(v: u16) -> Self;
        fn from_u32(v: u32) -> Self;
    }

Expand description

Trait for values that can be read from lookup tables.

## Required Methods§

#### fn from_u16(v: u16) -> Self

#### fn from_u32(v: u32) -> Self

## 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.

## Implementations on Foreign Types§

§

### impl LookupValue for u16

§

#### fn from_u16(v: u16) -> u16

§

#### fn from_u32(v: u32) -> u16

§

### impl LookupValue for u32

§

#### fn from_u16(v: u16) -> u32

§

#### fn from_u32(v: u32) -> u32

## Implementors§

§

### impl LookupValue for GlyphId16