pub enum Rule {
Show 97 variants
EOI,
program,
statement,
import_stmt,
import_list,
top_level_let,
top_level_call,
tool_decl,
fn_decl,
param_list,
param,
return_type,
type_name,
struct_decl,
struct_body,
struct_field,
field_type,
field_type_array,
field_type_object,
field_type_named,
field_type_base,
enum_decl,
enum_body,
enum_variant,
enum_variant_data,
enum_field_list,
enum_field,
parallel_decl,
parallel_body,
parallel_field,
agents_field,
timeout_field,
output_type,
block,
block_stmt,
let_stmt,
assignment_stmt,
return_stmt,
if_stmt,
for_stmt,
while_stmt,
try_stmt,
break_stmt,
continue_stmt,
expr_stmt,
agent_decl,
agent_body,
agent_item,
use_keyword,
use_stmt,
output_field,
agent_field,
expression,
logical_or,
logical_and,
equality,
comparison,
additive,
multiplicative,
unary,
postfix,
call_expr,
arg_list,
index_expr,
member_expr,
primary,
match_expr,
match_arm,
match_pattern,
wildcard_pattern,
enum_pattern,
pattern_bindings,
match_arm_body,
lambda,
lambda_params,
lambda_body,
range_expr,
null_literal,
array_literal,
object_literal,
object_field,
multiline_string,
multiline_part,
multiline_interpolation,
multiline_chars,
string_literal,
string_part,
interpolation,
string_chars,
escape_sequence,
number_literal,
duration_literal,
duration_unit,
boolean_literal,
identifier,
WHITESPACE,
COMMENT,
}Variants§
EOI
End-of-input
program
statement
import_stmt
import_list
top_level_let
top_level_call
tool_decl
fn_decl
param_list
param
return_type
type_name
struct_decl
struct_body
struct_field
field_type
field_type_array
field_type_object
field_type_named
field_type_base
enum_decl
enum_body
enum_variant
enum_variant_data
enum_field_list
enum_field
parallel_decl
parallel_body
parallel_field
agents_field
timeout_field
output_type
block
block_stmt
let_stmt
assignment_stmt
return_stmt
if_stmt
for_stmt
while_stmt
try_stmt
break_stmt
continue_stmt
expr_stmt
agent_decl
agent_body
agent_item
use_keyword
use_stmt
output_field
agent_field
expression
logical_or
logical_and
equality
comparison
additive
multiplicative
unary
postfix
call_expr
arg_list
index_expr
member_expr
primary
match_expr
match_arm
match_pattern
wildcard_pattern
enum_pattern
pattern_bindings
match_arm_body
lambda
lambda_params
lambda_body
range_expr
null_literal
array_literal
object_literal
object_field
multiline_string
multiline_part
multiline_interpolation
multiline_chars
string_literal
string_part
interpolation
string_chars
escape_sequence
number_literal
duration_literal
duration_unit
boolean_literal
identifier
WHITESPACE
COMMENT
Implementations§
Trait Implementations§
Source§impl Ord for Rule
impl Ord for Rule
Source§impl Parser<Rule> for GentParser
impl Parser<Rule> for GentParser
Source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.