extendr_macros::wrappers

Function translate_only_alias

Source
fn translate_only_alias(pat: &Pat) -> Result<&Ident, Error>
Expand description

Returns only the alias from a function argument.

For example mut x: Vec<i32>, the alias is x, but the mut would still be present if only the Ident of PatType was used.