pub enum Rule {
Show 173 variants EOI, var_decl_keyword, fn_decl_keyword, trait_decl_keyword, return_keyword, storage_keyword, use_keyword, as_keyword, enum_keyword, struct_keyword, impl_keyword, asm_keyword, while_keyword, match_keyword, mut_keyword, assign, line_comment_open, block_comment_open, block_comment_close, fn_returns, path_separator, include_keyword, abi_keyword, ref_keyword, deref_keyword, true_keyword, false_keyword, const_decl_keyword, impurity_keyword, size_of_type_keyword, size_of_val_keyword, program, library, library_name, contract, script, predicate, file_path, include_statement, alias, call_path, relative_call_path, absolute_call_path, call_path_, relative_call_path_, absolute_call_path_, expr_inner, parenthesized_expression, unary_op_expr, expr, func_app, type_args, fn_args, var_exp, var_name_ident, struct_field_access, method_exp, subfield_exp, contract_call_params, subfield_path, sub_subfield_path, fully_qualified_method, call_item, delineated_path, array_index, size_of_expr, size_of_type_expr, size_of_val_expr, abi_cast, abi_decl, abi_name, if_exp, op, unary_op, literal_value, boolean, string, typed_integer, basic_integer, u8_integer, u16_integer, u32_integer, u64_integer, byte, binary_byte, hex_byte, hex_digit, match_expression, match_branch, match_scrutinee, catch_all, scrutinee, struct_scrutinee, struct_scrutinee_fields, struct_scrutinee_field, field_scrutinee, enum_scrutinee, fn_args_scrutinee, tuple_scrutinee, code_block, struct_expression, struct_expr_fields, array_exp, array_elems, declaration, non_var_decl, var_decl, type_ascription, fn_decl, fn_signature, var_lhs, var_name, var_tuple, reassignment, variable_reassignment, struct_field_reassignment, const_decl, visibility, struct_decl, storage_decl, storage_fields, storage_field, struct_name, struct_fields, struct_field_name, enum_decl, enum_fields, enum_name, enum_field_name, impl_self, fn_decl_params, type_params, fn_decl_param, fn_decl_param_name, fn_decl_name, type_name, str_type, trait_bounds, generic_type_param, array_type, return_statement, expr_statement, trait_decl, trait_methods, supertraits, supertrait, impl_trait, use_statement, relative_use_statement, absolute_use_statement, import_path, import_items, star, self_keyword, while_loop, asm_expression, asm_registers, asm_register_declaration, asm_op, asm_register, asm_immediate, opcode, tuple_type, tuple_expr, tuple_index, control_flow, WHITESPACE, COMMENT, block_comment, line_comment, char, ident, reserved_words,
}

Variants

EOI

var_decl_keyword

fn_decl_keyword

trait_decl_keyword

return_keyword

storage_keyword

use_keyword

as_keyword

enum_keyword

struct_keyword

impl_keyword

asm_keyword

while_keyword

match_keyword

mut_keyword

assign

line_comment_open

block_comment_open

block_comment_close

fn_returns

path_separator

include_keyword

abi_keyword

ref_keyword

deref_keyword

true_keyword

false_keyword

const_decl_keyword

impurity_keyword

size_of_type_keyword

size_of_val_keyword

program

library

library_name

contract

script

predicate

file_path

include_statement

alias

call_path

relative_call_path

absolute_call_path

call_path_

relative_call_path_

absolute_call_path_

expr_inner

parenthesized_expression

unary_op_expr

expr

func_app

type_args

fn_args

var_exp

var_name_ident

struct_field_access

method_exp

subfield_exp

contract_call_params

subfield_path

sub_subfield_path

fully_qualified_method

call_item

delineated_path

array_index

size_of_expr

size_of_type_expr

size_of_val_expr

abi_cast

abi_decl

abi_name

if_exp

op

unary_op

literal_value

boolean

string

typed_integer

basic_integer

u8_integer

u16_integer

u32_integer

u64_integer

byte

binary_byte

hex_byte

hex_digit

match_expression

match_branch

match_scrutinee

catch_all

scrutinee

struct_scrutinee

struct_scrutinee_fields

struct_scrutinee_field

field_scrutinee

enum_scrutinee

fn_args_scrutinee

tuple_scrutinee

code_block

struct_expression

struct_expr_fields

array_exp

array_elems

declaration

non_var_decl

var_decl

type_ascription

fn_decl

fn_signature

var_lhs

var_name

var_tuple

reassignment

variable_reassignment

struct_field_reassignment

const_decl

visibility

struct_decl

storage_decl

storage_fields

storage_field

struct_name

struct_fields

struct_field_name

enum_decl

enum_fields

enum_name

enum_field_name

impl_self

fn_decl_params

type_params

fn_decl_param

fn_decl_param_name

fn_decl_name

type_name

str_type

trait_bounds

generic_type_param

array_type

return_statement

expr_statement

trait_decl

trait_methods

supertraits

supertrait

impl_trait

use_statement

relative_use_statement

absolute_use_statement

import_path

import_items

star

self_keyword

while_loop

asm_expression

asm_registers

asm_register_declaration

asm_op

asm_register

asm_immediate

opcode

tuple_type

tuple_expr

tuple_index

control_flow

WHITESPACE

COMMENT

block_comment

line_comment

char

ident

reserved_words

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

Parses a &str starting from rule.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.