Enum write_fonts::tables::loca::LocaFormat
source · #[repr(u8)]pub enum LocaFormat {
Short,
Long,
}Expand description
Whether or not the ‘loca’ table uses short or long offsets.
This flag is stored in the ‘head’ table’s indexToLocFormat field. See the ‘loca’ spec for more information.
Variants§
Trait Implementations§
source§impl Clone for LocaFormat
impl Clone for LocaFormat
source§fn clone(&self) -> LocaFormat
fn clone(&self) -> LocaFormat
Returns a copy 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 LocaFormat
impl Debug for LocaFormat
source§impl PartialEq<LocaFormat> for LocaFormat
impl PartialEq<LocaFormat> for LocaFormat
source§fn eq(&self, other: &LocaFormat) -> bool
fn eq(&self, other: &LocaFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for LocaFormat
impl StructuralPartialEq for LocaFormat
Auto Trait Implementations§
impl RefUnwindSafe for LocaFormat
impl Send for LocaFormat
impl Sync for LocaFormat
impl Unpin for LocaFormat
impl UnwindSafe for LocaFormat
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.