The first positional argument, if any (the `*` form has none).
(&self)
| 1434 | |
| 1435 | /// The first positional argument, if any (the `*` form has none). |
| 1436 | pub fn first(&self) -> Option<&Expr<T>> { |
| 1437 | match self { |
| 1438 | FunctionArgs::Star => None, |
| 1439 | FunctionArgs::Args { args, .. } => args.first(), |
| 1440 | } |
| 1441 | } |
| 1442 | |
| 1443 | /// Returns the number of arguments. Star (`*`) is None. |
| 1444 | pub fn len(&self) -> Option<usize> { |
no outgoing calls