Skip to main content

arguments

Function arguments 

Source
pub fn arguments<'a, const N: usize>(
    args: &'a [Argument],
    params: [Option<&str>; N],
    owner: &str,
    pos: Pos,
) -> Result<[Option<&'a Value>; N], Error>
Expand description

The arguments of a constructor with a tuple, in the order of its parameters, which are given by their names, or None for a parameter that has none. The arguments without a name bind the parameters in order, and those with a name bind the parameter of that name, which may be one that could have been bound in order. A named parameter that is not bound is None, and takes the default of its type; an unnamed one is an error. The errors are check’s, in its order.