Enum write_fonts::tables::gpos::PositionLookup
source · pub enum PositionLookup {
Single(Lookup<SinglePos>),
Pair(Lookup<PairPos>),
Cursive(Lookup<CursivePosFormat1>),
MarkToBase(Lookup<MarkBasePosFormat1>),
MarkToLig(Lookup<MarkLigPosFormat1>),
MarkToMark(Lookup<MarkMarkPosFormat1>),
Contextual(Lookup<PositionSequenceContext>),
ChainContextual(Lookup<PositionChainContext>),
Extension(Lookup<ExtensionSubtable>),
}Expand description
A GPOS Lookup subtable.
Variants§
Single(Lookup<SinglePos>)
Pair(Lookup<PairPos>)
Cursive(Lookup<CursivePosFormat1>)
MarkToBase(Lookup<MarkBasePosFormat1>)
MarkToLig(Lookup<MarkLigPosFormat1>)
MarkToMark(Lookup<MarkMarkPosFormat1>)
Contextual(Lookup<PositionSequenceContext>)
ChainContextual(Lookup<PositionChainContext>)
Extension(Lookup<ExtensionSubtable>)
Trait Implementations§
source§impl Clone for PositionLookup
impl Clone for PositionLookup
source§fn clone(&self) -> PositionLookup
fn clone(&self) -> PositionLookup
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 PositionLookup
impl Debug for PositionLookup
source§impl Default for PositionLookup
impl Default for PositionLookup
source§impl<'a> FontRead<'a> for PositionLookup
impl<'a> FontRead<'a> for PositionLookup
source§impl FontWrite for PositionLookup
impl FontWrite for PositionLookup
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
source§impl FromObjRef<PositionLookup<'_>> for PositionLookup
impl FromObjRef<PositionLookup<'_>> for PositionLookup
source§fn from_obj_ref(from: &PositionLookup<'_>, data: FontData<'_>) -> Self
fn from_obj_ref(from: &PositionLookup<'_>, data: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl FromTableRef<PositionLookup<'_>> for PositionLookup
impl FromTableRef<PositionLookup<'_>> for PositionLookup
fn from_table_ref(from: &T) -> Self
source§impl Hash for PositionLookup
impl Hash for PositionLookup
source§impl Ord for PositionLookup
impl Ord for PositionLookup
source§fn cmp(&self, other: &PositionLookup) -> Ordering
fn cmp(&self, other: &PositionLookup) -> 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 PositionLookup
impl PartialEq for PositionLookup
source§fn eq(&self, other: &PositionLookup) -> bool
fn eq(&self, other: &PositionLookup) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PositionLookup
impl PartialOrd for PositionLookup
source§fn partial_cmp(&self, other: &PositionLookup) -> Option<Ordering>
fn partial_cmp(&self, other: &PositionLookup) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RemapVariationIndices for PositionLookup
impl RemapVariationIndices for PositionLookup
source§fn remap_variation_indices(&mut self, key_map: &VariationIndexRemapping)
fn remap_variation_indices(&mut self, key_map: &VariationIndexRemapping)
Remap any
TemporaryDeltaSetIds to their final VariationIndex valuessource§impl Validate for PositionLookup
impl Validate for PositionLookup
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for PositionLookup
impl StructuralEq for PositionLookup
impl StructuralPartialEq for PositionLookup
Auto Trait Implementations§
impl RefUnwindSafe for PositionLookup
impl Send for PositionLookup
impl Sync for PositionLookup
impl Unpin for PositionLookup
impl UnwindSafe for PositionLookup
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
impl<'a, T> FontReadWithArgs<'a> for Twhere
T: FontRead<'a>,
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.