Expand description
Parser for the list! macro.
A simple macro for constructing R lists from Rust values.
ⓘ
// Named entries (like R's list())
list!(
alpha = 1,
beta = "hello",
gamma = vec![1, 2, 3],
)
// Unnamed entries
list!(1, "hello", vec![1, 2, 3])
// Mixed (unnamed entries get empty string names)
list!(alpha = 1, 2, beta = "hello")Structs§
- List
Entry - A single entry in the list.
- List
Input - Parsed
list!macro input containing zero or more entries.
Enums§
- List
Name - Name for a list entry – either a Rust identifier or a string literal.
Functions§
- expand_
list - Expands a parsed
list!invocation into aListconstructor token stream.