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