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