Skip to main content

positional_macro_shape

Function positional_macro_shape 

Source
pub fn positional_macro_shape(
    head: Symbol,
    fixed: &[Symbol],
    rest: Option<&Symbol>,
) -> Arc<dyn Shape>
Expand description

Builds a macro syntax shape that captures named positional parameters and an optional rest parameter after the head symbol.