pub struct ValidatedGrammar {
pub expressions: Vec<ExpressionWithID>,
pub interned_strings: InternedStrings,
pub start_symbol: SymbolU32,
pub id_to_regex: FxHashMap<SymbolU32, FiniteStateAutomaton>,
pub id_to_suffix_automaton: FxHashMap<SymbolU32, SuffixAutomaton>,
}Fields§
§expressions: Vec<ExpressionWithID>§interned_strings: InternedStrings§start_symbol: SymbolU32§id_to_regex: FxHashMap<SymbolU32, FiniteStateAutomaton>§id_to_suffix_automaton: FxHashMap<SymbolU32, SuffixAutomaton>Implementations§
Source§impl ValidatedGrammar
impl ValidatedGrammar
pub fn simplify_grammar( self, config: CompressionConfig, regex_start_config: &Config, ) -> SimplifiedGrammar
Trait Implementations§
Source§impl Clone for ValidatedGrammar
impl Clone for ValidatedGrammar
Source§fn clone(&self) -> ValidatedGrammar
fn clone(&self) -> ValidatedGrammar
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ValidatedGrammar
impl RefUnwindSafe for ValidatedGrammar
impl Send for ValidatedGrammar
impl Sync for ValidatedGrammar
impl Unpin for ValidatedGrammar
impl UnwindSafe for ValidatedGrammar
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