Enum write_fonts::tables::layout::ChainedSequenceContext
source · pub enum ChainedSequenceContext {
Format1(ChainedSequenceContextFormat1),
Format2(ChainedSequenceContextFormat2),
Format3(ChainedSequenceContextFormat3),
}Variants§
Format1(ChainedSequenceContextFormat1)
Format2(ChainedSequenceContextFormat2)
Format3(ChainedSequenceContextFormat3)
Implementations§
source§impl ChainedSequenceContext
impl ChainedSequenceContext
sourcepub fn format_1(
coverage: CoverageTable,
chained_seq_rule_sets: Vec<Option<ChainedSequenceRuleSet>>
) -> Self
pub fn format_1( coverage: CoverageTable, chained_seq_rule_sets: Vec<Option<ChainedSequenceRuleSet>> ) -> Self
Construct a new ChainedSequenceContextFormat1 subtable
sourcepub fn format_2(
coverage: CoverageTable,
backtrack_class_def: ClassDef,
input_class_def: ClassDef,
lookahead_class_def: ClassDef,
chained_class_seq_rule_sets: Vec<Option<ChainedClassSequenceRuleSet>>
) -> Self
pub fn format_2( coverage: CoverageTable, backtrack_class_def: ClassDef, input_class_def: ClassDef, lookahead_class_def: ClassDef, chained_class_seq_rule_sets: Vec<Option<ChainedClassSequenceRuleSet>> ) -> Self
Construct a new ChainedSequenceContextFormat2 subtable
sourcepub fn format_3(
backtrack_coverages: Vec<CoverageTable>,
input_coverages: Vec<CoverageTable>,
lookahead_coverages: Vec<CoverageTable>,
seq_lookup_records: Vec<SequenceLookupRecord>
) -> Self
pub fn format_3( backtrack_coverages: Vec<CoverageTable>, input_coverages: Vec<CoverageTable>, lookahead_coverages: Vec<CoverageTable>, seq_lookup_records: Vec<SequenceLookupRecord> ) -> Self
Construct a new ChainedSequenceContextFormat3 subtable
Trait Implementations§
source§impl Clone for ChainedSequenceContext
impl Clone for ChainedSequenceContext
source§fn clone(&self) -> ChainedSequenceContext
fn clone(&self) -> ChainedSequenceContext
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 ChainedSequenceContext
impl Debug for ChainedSequenceContext
source§impl Default for ChainedSequenceContext
impl Default for ChainedSequenceContext
source§impl<'a> FontRead<'a> for ChainedSequenceContext
impl<'a> FontRead<'a> for ChainedSequenceContext
source§impl FontWrite for ChainedSequenceContext
impl FontWrite for ChainedSequenceContext
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 From<ChainedSequenceContext> for SubstitutionChainContext
impl From<ChainedSequenceContext> for SubstitutionChainContext
source§fn from(src: ChainedSequenceContext) -> SubstitutionChainContext
fn from(src: ChainedSequenceContext) -> SubstitutionChainContext
Converts to this type from the input type.
source§impl From<ChainedSequenceContextFormat1> for ChainedSequenceContext
impl From<ChainedSequenceContextFormat1> for ChainedSequenceContext
source§fn from(src: ChainedSequenceContextFormat1) -> ChainedSequenceContext
fn from(src: ChainedSequenceContextFormat1) -> ChainedSequenceContext
Converts to this type from the input type.
source§impl From<ChainedSequenceContextFormat2> for ChainedSequenceContext
impl From<ChainedSequenceContextFormat2> for ChainedSequenceContext
source§fn from(src: ChainedSequenceContextFormat2) -> ChainedSequenceContext
fn from(src: ChainedSequenceContextFormat2) -> ChainedSequenceContext
Converts to this type from the input type.
source§impl From<ChainedSequenceContextFormat3> for ChainedSequenceContext
impl From<ChainedSequenceContextFormat3> for ChainedSequenceContext
source§fn from(src: ChainedSequenceContextFormat3) -> ChainedSequenceContext
fn from(src: ChainedSequenceContextFormat3) -> ChainedSequenceContext
Converts to this type from the input type.
source§impl FromObjRef<ChainedSequenceContext<'_>> for ChainedSequenceContext
impl FromObjRef<ChainedSequenceContext<'_>> for ChainedSequenceContext
source§fn from_obj_ref(obj: &ChainedSequenceContext<'_>, _: FontData<'_>) -> Self
fn from_obj_ref(obj: &ChainedSequenceContext<'_>, _: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl FromTableRef<ChainedSequenceContext<'_>> for ChainedSequenceContext
impl FromTableRef<ChainedSequenceContext<'_>> for ChainedSequenceContext
fn from_table_ref(from: &T) -> Self
source§impl Hash for ChainedSequenceContext
impl Hash for ChainedSequenceContext
source§impl Ord for ChainedSequenceContext
impl Ord for ChainedSequenceContext
source§fn cmp(&self, other: &ChainedSequenceContext) -> Ordering
fn cmp(&self, other: &ChainedSequenceContext) -> 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 ChainedSequenceContext
impl PartialEq for ChainedSequenceContext
source§fn eq(&self, other: &ChainedSequenceContext) -> bool
fn eq(&self, other: &ChainedSequenceContext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ChainedSequenceContext
impl PartialOrd for ChainedSequenceContext
source§fn partial_cmp(&self, other: &ChainedSequenceContext) -> Option<Ordering>
fn partial_cmp(&self, other: &ChainedSequenceContext) -> 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 ChainedSequenceContext
impl Validate for ChainedSequenceContext
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for ChainedSequenceContext
impl StructuralPartialEq for ChainedSequenceContext
Auto Trait Implementations§
impl RefUnwindSafe for ChainedSequenceContext
impl Send for ChainedSequenceContext
impl Sync for ChainedSequenceContext
impl Unpin for ChainedSequenceContext
impl UnwindSafe for ChainedSequenceContext
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.