pub enum FunctionArity {
Exact(usize),
AtLeast(usize),
Between(usize, usize),
}Variants§
Implementations§
Source§impl FunctionArity
impl FunctionArity
pub fn can_accept(&self, n: usize) -> bool
Trait Implementations§
Auto 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