pub fn ensure_nil(&self) -> Result<(), ErrorKind> {
      if self.0.kind() == ValueKind::Nil {
         Ok(())
      } else {
         Err(self.type_error("Nil"))
      }
   }
/// Ensures the value is a `Nil`, returning a type mismatch error if that's not the case.
Ensures the value is a `Nil`, returning a type mismatch error if that's not the case.
Ensures the value is a ` Nil ` returning a type mismatch error if that ' s not the case .
pub fn ensure_nil(&self) -> Result<(), ErrorKind> {
      if self.0.kind() == ValueKind::Nil {
         Ok(())
      } else {
         Err(self.type_error("Nil"))
      }
   }
pub fn ensure_nil ( & self ) -> Result < ( ) , ErrorKind > { if self . 0 . kind ( ) == ValueKind :: Nil { Ok ( ( ) ) } else { Err ( self . type_error ( " " ) ) } }
Ensures the value is a `Nil`, returning a type mismatch error if that's not the case.
Ensures the value is a ` Nil ` returning a type mismatch error if that ' s not the case .
&self