parameter
A value a function receives when it is called.
Parameters are a function's typed inputs; the values passed at a call are arguments.
Loading interactive…
Examples
In
fn pay(hours: u32, rate: u32),hoursandrateare parameters; each needs a type, sofn double(n)does not compile.