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§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 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 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
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<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.