pub fn exactly(&self, expected: usize) -> Result<(), Error> {
        let actual = self.0.len();
        if actual < expected {
            Err(Error::NotEnoughArguments { expected, actual })
        } else if actual > expected {
            Err(Error::TooManyArguments { expected, actual })
        } else {
            Ok(())
        }
    }
/// Ensures that there are exactly the requested number of arguments.
Ensures that there are exactly the requested number of arguments.
Ensures that there are exactly the requested number of arguments .
pub fn exactly(&self, expected: usize) -> Result<(), Error> {
        let actual = self.0.len();
        if actual < expected {
            Err(Error::NotEnoughArguments { expected, actual })
        } else if actual > expected {
            Err(Error::TooManyArguments { expected, actual })
        } else {
            Ok(())
        }
    }
pub fn exactly ( & self , expected : usize ) -> Result < ( ) , Error > { let actual = self . 0 . len ( ) ; if actual < expected { Err ( Error :: NotEnoughArguments { expected , actual } ) } else if actual > expected { Err ( Error :: TooManyArguments { expected , actual } ) } else { Ok ( ( ) ) } }
Ensures that there are exactly the requested number of arguments.
Ensures that there are exactly the requested number of arguments .
&self
expected
usize