pub struct PatternFile {
    pub description: MetaDescription,
    pub word_rules: Vec<WordRule>,
    pub pos_rules: Vec<PosRule>,
    pub math_rules: Vec<MathRule>,
    pub mtext_rules: Vec<MTextRule>,
    pub sequence_rules: Vec<SequenceRule>,
    pub word_rule_names: HashMap<String, usize>,
    pub pos_rule_names: HashMap<String, usize>,
    pub math_rule_names: HashMap<String, usize>,
    pub mtext_rule_names: HashMap<String, usize>,
    pub sequence_rule_names: HashMap<String, usize>,
}
Expand description

Contains rules loaded from a pattern file

Fields

description: MetaDescription

description of the file

word_rules: Vec<WordRule>

the word rules

pos_rules: Vec<PosRule>

the POS rules

math_rules: Vec<MathRule>

the math rules

mtext_rules: Vec<MTextRule>

the mtext rules (math symbols)

sequence_rules: Vec<SequenceRule>

the sequence rules

word_rule_names: HashMap<String, usize>

matches names of word rules to their offsets

pos_rule_names: HashMap<String, usize>

matches names of POS rules to their offsets

math_rule_names: HashMap<String, usize>

matches names of math rules to their offsets

mtext_rule_names: HashMap<String, usize>

matches names of mtext rules to their offsets

sequence_rule_names: HashMap<String, usize>

matches names of sequence rules to their offsets

Implementations

loads a pattern file

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.