pub struct Param {
pub name: String,
pub domain: Option<String>,
pub default: Option<ParamDefault>,
pub optional: bool,
pub keyword_only: bool,
pub positional_only: bool,
pub alternate_names: Vec<String>,
pub variable: bool,
}Expand description
One ordered parameter of a function entry.
Fields§
§name: String§domain: Option<String>The enum domain this parameter requires, when it is an enum argument.
default: Option<ParamDefault>An explicit default the frontend may expand; see ParamDefault.
optional: boolWhether the argument is omittable without an emitted expansion
("optional": true; the reference accepts the short form).
keyword_only: boolWhether the argument must be passed as a keyword (name = expr):
the reference chase form requires its 3rd argument to be
rate = ... or duration = ... (issue #110).
positional_only: boolWhether the argument can only be passed positionally (keyword
binding is rejected): the reference chase form’s leading arguments
(issue #110).
alternate_names: Vec<String>Additional accepted keyword spellings for this parameter (the
reference chase form accepts both rate and duration for its
3rd argument).
variable: boolWhether the argument must be a variable reference (a global variable or a player variable); the chase family requires a variable first argument to select the global/player emission form.