Struct llamapun::patterns::PatternFile
source · [−]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
sourceimpl PatternFile
impl PatternFile
Auto Trait Implementations
impl RefUnwindSafe for PatternFile
impl Send for PatternFile
impl Sync for PatternFile
impl Unpin for PatternFile
impl UnwindSafe for PatternFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more