Struct allsorts_no_std::tables::loca::LocaTable[][src]

pub struct LocaTable<'a> {
    pub offsets: LocaOffsets<'a>,
}

Fields

offsets: LocaOffsets<'a>

Implementations

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

pub fn empty() -> Self[src]

Trait Implementations

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

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

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

type Args = (usize, IndexToLocFormat)

type HostType = Self

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    (num_glyphs, index_to_loc_format): (usize, IndexToLocFormat)
) -> Result<Self, ParseError>
[src]

Read a loca table from ctxt

  • num_glyphs is the number of glyphs in the font. The value for num_glyphs is found in the ‘maxp’ table.
  • index_to_loc_format specifies whether the offsets in the loca table are short or long. This value can be read from the head table.

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

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

impl<'a> RefUnwindSafe for LocaTable<'a>

impl<'a> Send for LocaTable<'a>

impl<'a> Sync for LocaTable<'a>

impl<'a> Unpin for LocaTable<'a>

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