Struct allsorts_no_std::cff::Index[][src]

pub struct Index<'a> {
    pub count: usize,
    // some fields omitted
}

A CFF INDEX described in Section 5 of Technical Note #5176

Fields

count: usize

Implementations

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

pub fn read<T: ReadBinaryDep<'a, Args = ()>>(
    &'a self,
    index: usize
) -> Result<T::HostType, ParseError>
[src]

pub fn iter(&self) -> impl Iterator<Item = &[u8]>[src]

pub fn calculate_size<'b, T, HostType>(
    objects: &'b [&HostType],
    args: T::Args
) -> Result<usize, WriteError> where
    T: WriteBinaryDep<&'b HostType>,
    T::Args: Clone
[src]

Returns the length required to write objects.

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

Returns the size of the data held by this INDEX.

Trait Implementations

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

impl<'a> ReadBinary<'a> for Index<'a>[src]

type HostType = Self

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

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Index<'a>

impl<'a> Send for Index<'a>

impl<'a> Sync for Index<'a>

impl<'a> Unpin for Index<'a>

impl<'a> UnwindSafe for Index<'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<'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.

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.