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