pub fn expect_exactly(&self, n: usize) -> Result<(), Error> {
      if self.count() != n {
         Err(Error::ArgumentCount {
            expected: n,
            got: self.count(),
         })
      } else {
         Ok(())
      }
   }
/// Raises an error if there weren't exactly `n` arguments passed to the function.
Raises an error if there weren't exactly `n` arguments passed to the function.
Raises an error if there weren ' t exactly ` n ` arguments passed to the function .
pub fn expect_exactly(&self, n: usize) -> Result<(), Error> {
      if self.count() != n {
         Err(Error::ArgumentCount {
            expected: n,
            got: self.count(),
         })
      } else {
         Ok(())
      }
   }
pub fn expect_exactly ( & self , n : usize ) -> Result < ( ) , Error > { if self . count ( ) != n { Err ( Error :: ArgumentCount { expected : n , got : self . count ( ) , } ) } else { Ok ( ( ) ) } }
Raises an error if there weren't exactly `n` arguments passed to the function.
Raises an error if there weren ' t exactly ` n ` arguments passed to the function .
&self
n
usize