Module types

Source

Functionsยง

parse_enum_def
Parse a [ModuleStmt::Enum].
parse_field
Parse a field for a struct or contract. The leading optional pub and const qualifiers must be parsed by the caller, and passed in.
parse_generic_args
Parse an angle-bracket-wrapped list of generic arguments (eg. the tail end of Map<address, u256>).
parse_impl_def
Parse an impl block.
parse_opt_qualifier
Parse an optional qualifier (pub, const, or idx).
parse_path_tail
Returns path and trailing :: token, if present.
parse_struct_def
Parse a [ModuleStmt::Struct].
parse_trait_def
Parse a trait definition.
parse_type_alias
Parse a type alias definition, e.g. type MyMap = Map<u8, address>.
parse_type_desc
Parse a type description, e.g. u8 or Map<address, u256>.
parse_variant
Parse a variant for a enum definition.