Struct write_fonts::tables::gpos::PositionChainContext
source · pub struct PositionChainContext(_);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 LookupSubtable for PositionChainContext
impl LookupSubtable for PositionChainContext
source§const TYPE: LookupType = _
const TYPE: LookupType = _
The lookup type of this layout subtable.
source§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
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
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.