Skip to main content

parse_params

Function parse_params 

Source
pub fn parse_params(signature: &str) -> Vec<String>
Expand description

Extract positional parameter names from a function signature, e.g. "def get_user(id, name=None, *args)" → ["id", "name"]. Skips *args/**kwargs and the self/cls receiver. Language-agnostic enough for the common name(params) shape.