Functionsยง
- parse_
enum_ def - Parse a [
ModuleStmt::Enum
]. - parse_
field - Parse a field for a struct or contract. The leading optional
pub
andconst
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
, oridx
). - 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
orMap<address, u256>
. - parse_
variant - Parse a variant for a enum definition.