Enum allsorts_no_std::tables::cmap::owned::CmapSubtable[][src]

pub enum CmapSubtable {
    Format0 {
        language: u16,
        glyph_id_array: Box<[u8; 256]>,
    },
    Format4 {
        language: u16,
        end_codes: Vec<u16>,
        start_codes: Vec<u16>,
        id_deltas: Vec<i16>,
        id_range_offsets: Vec<u16>,
        glyph_id_array: Vec<u16>,
    },
    Format6 {
        language: u16,
        first_code: u16,
        glyph_id_array: Vec<u16>,
    },
    Format10 {
        language: u32,
        start_char_code: u32,
        glyph_id_array: Vec<u16>,
    },
    Format12 {
        language: u32,
        groups: Vec<SequentialMapGroup>,
    },
}

Variants

Format0

Fields of Format0

language: u16glyph_id_array: Box<[u8; 256]>
Format4

Fields of Format4

language: u16end_codes: Vec<u16>start_codes: Vec<u16>id_deltas: Vec<i16>id_range_offsets: Vec<u16>glyph_id_array: Vec<u16>
Format6

Fields of Format6

language: u16first_code: u16glyph_id_array: Vec<u16>
Format10

Fields of Format10

language: u32start_char_code: u32glyph_id_array: Vec<u16>
Format12

Fields of Format12

language: u32groups: Vec<SequentialMapGroup>

Implementations

impl CmapSubtable[src]

pub fn map_glyph(&self, ch: u32) -> Result<Option<u16>, ParseError>[src]

Trait Implementations

impl Clone for CmapSubtable[src]

impl<'a> WriteBinary<CmapSubtable> for CmapSubtable[src]

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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, 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, HostType> WriteBinaryDep<HostType> for T where
    T: WriteBinary<HostType>, 
[src]

type Args = ()

The type of the arguments supplied to write_dep.

type Output = <T as WriteBinary<HostType>>::Output

The type of the value returned by write_dep.