pub struct LocaTable<'a> {
pub offsets: LocaOffsets<'a>,
}Expand description
Fields§
§offsets: LocaOffsets<'a>Implementations§
Trait Implementations§
Source§impl<'b> ReadBinaryDep for LocaTable<'b>
impl<'b> ReadBinaryDep for LocaTable<'b>
Source§fn read_dep<'a>(
ctxt: &mut ReadCtxt<'a>,
(num_glyphs, index_to_loc_format): (usize, IndexToLocFormat),
) -> Result<Self::HostType<'a>, ParseError>
fn read_dep<'a>( ctxt: &mut ReadCtxt<'a>, (num_glyphs, index_to_loc_format): (usize, IndexToLocFormat), ) -> Result<Self::HostType<'a>, ParseError>
Read a loca table from ctxt
num_glyphsis the number of glyphs in the font. The value fornum_glyphsis found in the ‘maxp’ table.index_to_loc_formatspecifies whether the offsets in thelocatable are short or long. This value can be read from theheadtable.
type Args<'a> = (usize, IndexToLocFormat)
type HostType<'a> = LocaTable<'a>
Auto Trait Implementations§
impl<'a> Freeze for LocaTable<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
Source§type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep.Source§fn write_dep<C>(
ctxt: &mut C,
val: HostType,
_: <T as WriteBinaryDep<HostType>>::Args,
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
_: <T as WriteBinaryDep<HostType>>::Args,
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
Write the binary representation of Self to
ctxt.