pub enum FunctionArity {
AtLeast(usize),
Exactly(usize),
Multi(Vec<usize>),
}
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 moreAuto Trait Implementations§
impl Freeze for FunctionArity
impl RefUnwindSafe for FunctionArity
impl Send for FunctionArity
impl Sync for FunctionArity
impl Unpin for FunctionArity
impl UnwindSafe for FunctionArity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more