read_fonts::tables::aat

Trait LookupValue

Source
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§

Source

fn from_u16(v: u16) -> Self

Source

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§

Source§

impl LookupValue for u16

Source§

fn from_u16(v: u16) -> Self

Source§

fn from_u32(v: u32) -> Self

Source§

impl LookupValue for u32

Source§

fn from_u16(v: u16) -> Self

Source§

fn from_u32(v: u32) -> Self

Source§

impl LookupValue for GlyphId16

Source§

fn from_u16(v: u16) -> Self

Source§

fn from_u32(v: u32) -> Self

Implementors§