Enum allsorts_no_std::cff::FDSelect[][src]

pub enum FDSelect<'a> {
    Format0 {
        glyph_font_dict_indices: ReadArrayCow<'a, U8>,
    },
    Format3 {
        ranges: ReadArrayCow<'a, Range<u16, u8>>,
        sentinel: u16,
    },
}

Font DICT select as described in Section 19 of Technical Note #5176

Variants

Format0

Fields of Format0

glyph_font_dict_indices: ReadArrayCow<'a, U8>
Format3

Fields of Format3

ranges: ReadArrayCow<'a, Range<u16, u8>>sentinel: u16

Implementations

impl<'a> FDSelect<'a>[src]

pub fn font_dict_index(&self, glyph_id: u16) -> Option<u8>[src]

Returns the index of the Font DICT for the supplied glyph_id

Trait Implementations

impl<'a> Clone for FDSelect<'a>[src]

impl<'a> Debug for FDSelect<'a>[src]

impl<'a> PartialEq<FDSelect<'a>> for FDSelect<'a>[src]

impl<'a> ReadBinaryDep<'a> for FDSelect<'a>[src]

type Args = usize

type HostType = Self

impl<'a> WriteBinary<&'_ FDSelect<'a>> for FDSelect<'a>[src]

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

impl<'a> RefUnwindSafe for FDSelect<'a>

impl<'a> Send for FDSelect<'a>

impl<'a> Sync for FDSelect<'a>

impl<'a> Unpin for FDSelect<'a>

impl<'a> UnwindSafe for FDSelect<'a>

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.