Struct allsorts_no_std::cff::Dict [−][src]
A CFF DICT described in Section 4 of Technical Note #5176
Implementations
impl<'a, T> Dict<T> where
T: DictDefault,
[src]
T: DictDefault,
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]
&self,
scope: &ReadScope<'a>
) -> Result<(PrivateDict, usize), ParseError>
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]
T: DictDefault,
impl<T: Debug> Debug for Dict<T> where
T: DictDefault,
[src]
T: DictDefault,
impl<T: PartialEq> PartialEq<Dict<T>> for Dict<T> where
T: DictDefault,
[src]
T: DictDefault,
impl<'a, T> ReadBinary<'a> for Dict<T> where
T: DictDefault,
[src]
T: DictDefault,
impl<T> StructuralPartialEq for Dict<T> where
T: DictDefault,
[src]
T: DictDefault,
impl<T> WriteBinaryDep<&'_ Dict<T>> for Dict<T> where
T: DictDefault,
[src]
T: DictDefault,
Auto Trait Implementations
impl<T> RefUnwindSafe for Dict<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Dict<T> where
T: Send,
T: Send,
impl<T> Sync for Dict<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Dict<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Dict<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,