pub trait ICoroutine_2Methods: ICoroutine_2 {
Show 20 methods
// Provided methods
fn get_type(self) -> Coroutine_CoroutineType { ... }
fn set_type(self, value: impl Into<Coroutine_CoroutineType>) { ... }
fn ctor(self, function: impl Into<CallbackFunction>) { ... }
fn ctor_2(self, proc: impl Into<Processor>) { ... }
fn mark_clr_callback_as_dead(self) { ... }
fn as_typed_enumerable(self) -> IEnumerable_1<DynValue> { ... }
fn as_enumerable(self) -> IEnumerable_1<Object> { ... }
fn as_unity_coroutine(self) -> IEnumerator { ... }
fn resume(self, args: impl Into<Array<DynValue>>) -> DynValue { ... }
fn resume_2(
self,
context: impl Into<ScriptExecutionContext>,
args: impl Into<Array<DynValue>>,
) -> DynValue { ... }
fn resume_3(self) -> DynValue { ... }
fn resume_4(self, context: impl Into<ScriptExecutionContext>) -> DynValue { ... }
fn resume_5(self, args: impl Into<Array<Object>>) -> DynValue { ... }
fn resume_6(
self,
context: impl Into<ScriptExecutionContext>,
args: impl Into<Array<Object>>,
) -> DynValue { ... }
fn get_state(self) -> CoroutineState { ... }
fn get_stack_trace(
self,
skip: impl Into<i32>,
entry_source_ref: impl Into<SourceRef>,
) -> Array<WatchItem> { ... }
fn get_owner_script(self) -> Script { ... }
fn set_owner_script(self, value: impl Into<Script>) { ... }
fn get_auto_yield_counter(self) -> i64 { ... }
fn set_auto_yield_counter(self, value: impl Into<i64>) { ... }
}Provided Methods§
Sourcefn get_type(self) -> Coroutine_CoroutineType
fn get_type(self) -> Coroutine_CoroutineType
get_Type() overload
Sourcefn set_type(self, value: impl Into<Coroutine_CoroutineType>)
fn set_type(self, value: impl Into<Coroutine_CoroutineType>)
set_Type(crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType) overload
Sourcefn ctor(self, function: impl Into<CallbackFunction>)
fn ctor(self, function: impl Into<CallbackFunction>)
.ctor(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction) overload
Sourcefn ctor_2(self, proc: impl Into<Processor>)
fn ctor_2(self, proc: impl Into<Processor>)
.ctor(crate::moon_sharp::interpreter::execution::vm::processor::Processor) overload
Sourcefn mark_clr_callback_as_dead(self)
fn mark_clr_callback_as_dead(self)
MarkClrCallbackAsDead() overload
Sourcefn as_typed_enumerable(self) -> IEnumerable_1<DynValue>
fn as_typed_enumerable(self) -> IEnumerable_1<DynValue>
AsTypedEnumerable() overload
Sourcefn as_enumerable(self) -> IEnumerable_1<Object>
fn as_enumerable(self) -> IEnumerable_1<Object>
AsEnumerable() overload
Sourcefn as_unity_coroutine(self) -> IEnumerator
fn as_unity_coroutine(self) -> IEnumerator
AsUnityCoroutine() overload
Sourcefn resume(self, args: impl Into<Array<DynValue>>) -> DynValue
fn resume(self, args: impl Into<Array<DynValue>>) -> DynValue
Resume(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload
Sourcefn resume_2(
self,
context: impl Into<ScriptExecutionContext>,
args: impl Into<Array<DynValue>>,
) -> DynValue
fn resume_2( self, context: impl Into<ScriptExecutionContext>, args: impl Into<Array<DynValue>>, ) -> DynValue
Resume(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload
Sourcefn resume_4(self, context: impl Into<ScriptExecutionContext>) -> DynValue
fn resume_4(self, context: impl Into<ScriptExecutionContext>) -> DynValue
Resume(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext) overload
Sourcefn resume_5(self, args: impl Into<Array<Object>>) -> DynValue
fn resume_5(self, args: impl Into<Array<Object>>) -> DynValue
Resume(::unity::Array<crate::system::object::Object>) overload
Sourcefn resume_6(
self,
context: impl Into<ScriptExecutionContext>,
args: impl Into<Array<Object>>,
) -> DynValue
fn resume_6( self, context: impl Into<ScriptExecutionContext>, args: impl Into<Array<Object>>, ) -> DynValue
Resume(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, ::unity::Array<crate::system::object::Object>) overload
Sourcefn get_state(self) -> CoroutineState
fn get_state(self) -> CoroutineState
get_State() overload
Sourcefn get_stack_trace(
self,
skip: impl Into<i32>,
entry_source_ref: impl Into<SourceRef>,
) -> Array<WatchItem>
fn get_stack_trace( self, skip: impl Into<i32>, entry_source_ref: impl Into<SourceRef>, ) -> Array<WatchItem>
GetStackTrace(i32, crate::moon_sharp::interpreter::debugging::sourceref::SourceRef) overload
Sourcefn get_owner_script(self) -> Script
fn get_owner_script(self) -> Script
get_OwnerScript() overload
Sourcefn set_owner_script(self, value: impl Into<Script>)
fn set_owner_script(self, value: impl Into<Script>)
set_OwnerScript(crate::moon_sharp::interpreter::script::Script) overload
Sourcefn get_auto_yield_counter(self) -> i64
fn get_auto_yield_counter(self) -> i64
get_AutoYieldCounter() overload
Sourcefn set_auto_yield_counter(self, value: impl Into<i64>)
fn set_auto_yield_counter(self, value: impl Into<i64>)
set_AutoYieldCounter(i64) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: ICoroutine_2> ICoroutine_2Methods for __T
moon_sharp-interpreter-coroutine_2 only.