Enum callisp::ast::FunctionArity
source · Expand description
A struct representing the possible values of arity a function can have. Arity is just the number of arguments a function takes.
Variants§
AtLeast(usize)
The function can be called with a number of arguments greater than or equal to the contained value.
Exactly(usize)
The function can be called with only the specified amount of arguments.
Multi(Vec<usize>)
The function can be called with any of the amounts of arguments stored in the vector.
Implementations§
source§impl FunctionArity
impl FunctionArity
Trait Implementations§
source§impl Clone for FunctionArity
impl Clone for FunctionArity
source§fn clone(&self) -> FunctionArity
fn clone(&self) -> FunctionArity
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more