Skip to main contentModule generate
Source - arrow
- Emits
-> (return type arrow). - braces
- Creates brace group: {tokens}
- brackets
- Creates bracket group: [tokens]
- compile_error
- Creates a compile_error!(“message”) invocation.
- extend
- Convenience: extends a Vec with an iterator.
- fat_arrow
- Emits
=> (match arm arrow). - generics
- Emits
< and > around tokens for generics. - group
- Creates a group (delimited tokens).
- ident
- Creates an identifier token.
- ident_raw
- Creates an identifier token, handling raw identifiers (r#keyword).
- literal_str
- Creates a string literal token.
- literal_usize
- Creates an integer literal token.
- parens
- Creates parentheses group: (tokens)
- path
- Emits a path like
::reifydb_type::FromFrame.
Pass an empty first segment for a global path (::foo::bar). - path_sep
- Emits
:: (path separator). - punct
- Creates a punctuation token with Alone spacing.
- punct_joint
- Creates a punctuation token with Joint spacing (for multi-char punctuation like ::).
- underscore
- Creates an underscore token for type inference placeholders.
This is needed because Ident::new(“_”) panics in proc_macro v1.