Struct write_fonts::tables::gpos::PositionChainContext
source · pub struct PositionChainContext(/* private fields */);Expand description
A typed wrapper around a shared table.
This is used so that we can associate the correct lookup ids for lookups that are shared between GPOS/GSUB.
You can access the inner type via Deref or the as_inner method.
Implementations§
source§impl PositionChainContext
impl PositionChainContext
sourcepub fn as_inner(&self) -> &ChainedSequenceContext
pub fn as_inner(&self) -> &ChainedSequenceContext
Return a reference to the inner type.
Trait Implementations§
source§impl Clone for PositionChainContext
impl Clone for PositionChainContext
source§fn clone(&self) -> PositionChainContext
fn clone(&self) -> PositionChainContext
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 PositionChainContext
impl Debug for PositionChainContext
source§impl Default for PositionChainContext
impl Default for PositionChainContext
source§fn default() -> PositionChainContext
fn default() -> PositionChainContext
Returns the “default value” for a type. Read more
source§impl Deref for PositionChainContext
impl Deref for PositionChainContext
source§impl DerefMut for PositionChainContext
impl DerefMut for PositionChainContext
source§impl FontWrite for PositionChainContext
impl FontWrite for PositionChainContext
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 From<ChainedSequenceContext> for PositionChainContext
impl From<ChainedSequenceContext> for PositionChainContext
source§fn from(src: ChainedSequenceContext) -> PositionChainContext
fn from(src: ChainedSequenceContext) -> PositionChainContext
Converts to this type from the input type.
source§impl<'a> FromObjRef<ChainedSequenceContext<'a>> for PositionChainContext
impl<'a> FromObjRef<ChainedSequenceContext<'a>> for PositionChainContext
source§fn from_obj_ref(obj: &ChainedSequenceContext<'a>, _data: FontData<'_>) -> Self
fn from_obj_ref(obj: &ChainedSequenceContext<'a>, _data: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl<'a> FromTableRef<ChainedSequenceContext<'a>> for PositionChainContext
impl<'a> FromTableRef<ChainedSequenceContext<'a>> for PositionChainContext
fn from_table_ref(from: &T) -> Self
source§impl Hash for PositionChainContext
impl Hash for PositionChainContext
source§impl LookupSubtable for PositionChainContext
impl LookupSubtable for PositionChainContext
source§const TYPE: LookupType = _
const TYPE: LookupType = _
The lookup type of this layout subtable.
source§impl Ord for PositionChainContext
impl Ord for PositionChainContext
source§fn cmp(&self, other: &PositionChainContext) -> Ordering
fn cmp(&self, other: &PositionChainContext) -> 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 PositionChainContext
impl PartialEq for PositionChainContext
source§fn eq(&self, other: &PositionChainContext) -> bool
fn eq(&self, other: &PositionChainContext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PositionChainContext
impl PartialOrd for PositionChainContext
source§fn partial_cmp(&self, other: &PositionChainContext) -> Option<Ordering>
fn partial_cmp(&self, other: &PositionChainContext) -> 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 Validate for PositionChainContext
impl Validate for PositionChainContext
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for PositionChainContext
impl StructuralPartialEq for PositionChainContext
Auto Trait Implementations§
impl RefUnwindSafe for PositionChainContext
impl Send for PositionChainContext
impl Sync for PositionChainContext
impl Unpin for PositionChainContext
impl UnwindSafe for PositionChainContext
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<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.