pub enum IndexToLocFormat {
Short,
Long,
}Expand description
The size of the offsets in the loca table
https://docs.microsoft.com/en-us/typography/opentype/spec/loca
Variants§
Short
Offsets are 16-bit. The actual local offset divided by 2 is stored.
Long
Offsets are 32-bit. The actual local offset is stored.
Trait Implementations§
Source§impl Clone for IndexToLocFormat
impl Clone for IndexToLocFormat
Source§fn clone(&self) -> IndexToLocFormat
fn clone(&self) -> IndexToLocFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexToLocFormat
impl Debug for IndexToLocFormat
Source§impl Hash for IndexToLocFormat
impl Hash for IndexToLocFormat
Source§impl Ord for IndexToLocFormat
impl Ord for IndexToLocFormat
Source§fn cmp(&self, other: &IndexToLocFormat) -> Ordering
fn cmp(&self, other: &IndexToLocFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IndexToLocFormat
impl PartialEq for IndexToLocFormat
Source§impl PartialOrd for IndexToLocFormat
impl PartialOrd for IndexToLocFormat
Source§impl ReadBinary for IndexToLocFormat
impl ReadBinary for IndexToLocFormat
type HostType<'a> = IndexToLocFormat
fn read<'a>(ctxt: &mut ReadCtxt<'a>) -> Result<Self, ParseError>
Source§impl WriteBinary for IndexToLocFormat
impl WriteBinary for IndexToLocFormat
impl Copy for IndexToLocFormat
impl Eq for IndexToLocFormat
impl StructuralPartialEq for IndexToLocFormat
Auto Trait Implementations§
impl Freeze for IndexToLocFormat
impl RefUnwindSafe for IndexToLocFormat
impl Send for IndexToLocFormat
impl Sync for IndexToLocFormat
impl Unpin for IndexToLocFormat
impl UnwindSafe for IndexToLocFormat
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> ReadBinaryDep for Twhere
T: ReadBinary,
impl<T> ReadBinaryDep for Twhere
T: ReadBinary,
type Args<'a> = ()
type HostType<'a> = <T as ReadBinary>::HostType<'a>
fn read_dep<'a>( ctxt: &mut ReadCtxt<'a>, _: <T as ReadBinaryDep>::Args<'_>, ) -> Result<<T as ReadBinaryDep>::HostType<'a>, ParseError>
Source§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.