Module full_moon::ast::punctuated [−][src]
Expand description
A punctuated sequence of syntax tree nodes separated by punctuation (tokens).
Examples of punctuated sequences include:
- Arguments in a function call are
Punctuated<Expression>
- Names and definitions in a local assignment are
Punctuated<TokenReference>
andPunctuated<Expression>
respectively - The values of a return statement are
Punctuated<Expression>
Everything with punctuation uses the Punctuated<T>
type with the following logic.
let ast = parse("call(arg1, arg2, arg3)")?; // ^^^^^ ~~~~~ ^^^^^
Structs
An iterator over owned values of type T
.
Refer to the module documentation for more details.
An iterator over borrowed values of type &T
.
Refer to the module documentation for more details.
An iterator over borrowed values of type &mut T
.
Refer to the module documentation for more details.
A punctuated sequence of node T
separated by
TokenReference
.
Refer to the module documentation for more details.
Enums
A node T
followed by the possible trailing
TokenReference
.
Refer to the module documentation for more details.