logo
pub enum ChainContextLookup<T: LayoutTableType> {
    Format1 {
        coverage: Rc<Coverage>,
        chainsubrulesets: Vec<Option<ChainSubRuleSet>>,
        phantom: PhantomData<T>,
    },
    Format2 {
        coverage: Rc<Coverage>,
        backtrack_classdef: Rc<ClassDef>,
        input_classdef: Rc<ClassDef>,
        lookahead_classdef: Rc<ClassDef>,
        chainsubclasssets: Vec<Option<ChainSubClassSet>>,
        phantom: PhantomData<T>,
    },
    Format3 {
        backtrack_coverages: Vec<Rc<Coverage>>,
        input_coverages: Vec<Rc<Coverage>>,
        lookahead_coverages: Vec<Rc<Coverage>>,
        lookup_records: Vec<(u16, u16)>,
        phantom: PhantomData<T>,
    },
}

Variants

Format1

Fields

coverage: Rc<Coverage>
chainsubrulesets: Vec<Option<ChainSubRuleSet>>
phantom: PhantomData<T>

Format2

Fields

coverage: Rc<Coverage>
backtrack_classdef: Rc<ClassDef>
input_classdef: Rc<ClassDef>
lookahead_classdef: Rc<ClassDef>
chainsubclasssets: Vec<Option<ChainSubClassSet>>
phantom: PhantomData<T>

Format3

Fields

backtrack_coverages: Vec<Rc<Coverage>>
input_coverages: Vec<Rc<Coverage>>
lookahead_coverages: Vec<Rc<Coverage>>
lookup_records: Vec<(u16, u16)>
phantom: PhantomData<T>

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.