Struct allsorts_no_std::cff::Dict[][src]

pub struct Dict<T> where
    T: DictDefault
{ /* fields omitted */ }

A CFF DICT described in Section 4 of Technical Note #5176

Implementations

impl<'a, T> Dict<T> where
    T: DictDefault
[src]

pub fn new() -> Self[src]

pub fn get_with_default(&self, key: Operator) -> Option<&[Operand]>[src]

pub fn get(&self, key: Operator) -> Option<&[Operand]>[src]

pub fn get_i32(&self, key: Operator) -> Option<Result<i32, ParseError>>[src]

Returns the i32 value of this operator if the operands hold a single Integer.

pub fn iter(&self) -> impl Iterator<Item = &(Operator, Vec<Operand>)>[src]

pub fn first_operator(&self) -> Option<Operator>[src]

Returns the first operator of this DICT or None if the DICT is empty.

pub fn read_private_dict(
    &self,
    scope: &ReadScope<'a>
) -> Result<(PrivateDict, usize), ParseError>
[src]

Read a PrivateDict from this Dict returning it and its offset within scope on success.

A Private DICT is required, but may be specified as having a length of 0 if there are no non-default values to be stored.

pub fn len(&self) -> usize[src]

Trait Implementations

impl<T: Clone> Clone for Dict<T> where
    T: DictDefault
[src]

impl<T: Debug> Debug for Dict<T> where
    T: DictDefault
[src]

impl<T: PartialEq> PartialEq<Dict<T>> for Dict<T> where
    T: DictDefault
[src]

impl<'a, T> ReadBinary<'a> for Dict<T> where
    T: DictDefault
[src]

type HostType = Self

impl<T> StructuralPartialEq for Dict<T> where
    T: DictDefault
[src]

impl<T> WriteBinaryDep<&'_ Dict<T>> for Dict<T> where
    T: DictDefault
[src]

type Args = DictDelta

The type of the arguments supplied to write_dep.

type Output = usize

The type of the value returned by write_dep.

Auto Trait Implementations

impl<T> RefUnwindSafe for Dict<T> where
    T: RefUnwindSafe

impl<T> Send for Dict<T> where
    T: Send

impl<T> Sync for Dict<T> where
    T: Sync

impl<T> Unpin for Dict<T> where
    T: Unpin

impl<T> UnwindSafe for Dict<T> where
    T: UnwindSafe

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<'a, T> ReadBinaryDep<'a> for T where
    T: ReadBinary<'a>, 
[src]

type Args = ()

type HostType = <T as ReadBinary<'a>>::HostType

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.