pub fn resume<T>(&mut self) -> Result<Option<T>, Error>
   where
      T: TryFromValue,
   {
      if self.inner.halted() {
         Ok(None)
      } else {
         let Engine {
            env, globals, gc, ..
         } = &mut self.engine;
         let result = self.inner.interpret(env, globals, gc)?;
         Ok(Some(T::try_from_value(&Value::from_raw(result))?))
      }
   }
/// Resumes execution of a fiber. If execution is done already, returns `None`.
Resumes execution of a fiber. If execution is done already, returns `None`.
Resumes execution of a fiber . If execution is done already returns ` None ` .
pub fn resume<T>(&mut self) -> Result<Option<T>, Error>
   where
      T: TryFromValue,
   {
      if self.inner.halted() {
         Ok(None)
      } else {
         let Engine {
            env, globals, gc, ..
         } = &mut self.engine;
         let result = self.inner.interpret(env, globals, gc)?;
         Ok(Some(T::try_from_value(&Value::from_raw(result))?))
      }
   }
pub fn resume < T > ( & mut self ) -> Result < Option < T > , Error > where T : TryFromValue , { if self . inner . halted ( ) { Ok ( None ) } else { let Engine { env , globals , gc , .. } = & mut self . engine ; let result = self . inner . interpret ( env , globals , gc ) ? ; Ok ( Some ( T :: try_from_value ( & Value :: from_raw ( result ) ) ? ) ) } }
Resumes execution of a fiber.
Resumes execution of a fiber .
&mut self