Skip to main content

Module common

Module common 

Source

StructsΒ§

ExpressionParser πŸ”’
MessageParseError
An error that occurs when parsing a message within a specific line. Contains context pointing at that specific error.
ParsedNamedArgs πŸ”’
A collection of named arguments (name=value pairs) extracted from a named-argument-list rule, keyed by name with duplicate-name rejection.
RuleIter πŸ”’

EnumsΒ§

ErrorKind πŸ”’
Rule

ConstantsΒ§

_PEST_GRAMMAR_ExpressionParser πŸ”’

TraitsΒ§

ParsePair πŸ”’
ScopedParsePair πŸ”’
A trait for types that are parsed from a pest::iterators::Pair<Rule> that depends on the context - e.g. extension lookups or other contextual information. This is used for types that are not directly parsed from the grammar, but rather require additional context to parse correctly.

FunctionsΒ§

iter_pairs πŸ”’
sort_direction_from_str πŸ”’
Map a sort-direction enum identifier (without the leading &) to a SortDirection. Shared by the Sort relation’s sort_field parser and the window function’s order= parser, which reach it from different grammar rules (sort_direction vs a generic enum_value) but accept the same set of variant names. Lives in common so neither relations nor expressions depends on the other for it.
unescape_string πŸ”’
Unescapes a quoted string literal, handling escape sequences.
unwrap_single_pair πŸ”’