Skip to main content

ICoroutine_2Methods

Trait ICoroutine_2Methods 

Source
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§

Source

fn get_type(self) -> Coroutine_CoroutineType

get_Type() overload

Source

fn set_type(self, value: impl Into<Coroutine_CoroutineType>)

set_Type(crate::moon_sharp::interpreter::coroutine_2::Coroutine_CoroutineType) overload

Source

fn ctor(self, function: impl Into<CallbackFunction>)

.ctor(crate::moon_sharp::interpreter::callbackfunction::CallbackFunction) overload

Source

fn ctor_2(self, proc: impl Into<Processor>)

.ctor(crate::moon_sharp::interpreter::execution::vm::processor::Processor) overload

Source

fn mark_clr_callback_as_dead(self)

MarkClrCallbackAsDead() overload

Source

fn as_typed_enumerable(self) -> IEnumerable_1<DynValue>

AsTypedEnumerable() overload

Source

fn as_enumerable(self) -> IEnumerable_1<Object>

AsEnumerable() overload

Source

fn as_unity_coroutine(self) -> IEnumerator

AsUnityCoroutine() overload

Source

fn resume(self, args: impl Into<Array<DynValue>>) -> DynValue

Resume(::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

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

Source

fn resume_3(self) -> DynValue

Resume() overload

Source

fn resume_4(self, context: impl Into<ScriptExecutionContext>) -> DynValue

Resume(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext) overload

Source

fn resume_5(self, args: impl Into<Array<Object>>) -> DynValue

Resume(::unity::Array<crate::system::object::Object>) overload

Source

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

Source

fn get_state(self) -> CoroutineState

get_State() overload

Source

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

Source

fn get_owner_script(self) -> Script

get_OwnerScript() overload

Source

fn set_owner_script(self, value: impl Into<Script>)

set_OwnerScript(crate::moon_sharp::interpreter::script::Script) overload

Source

fn get_auto_yield_counter(self) -> i64

get_AutoYieldCounter() overload

Source

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§

Source§

impl<__T: ICoroutine_2> ICoroutine_2Methods for __T

Available on crate feature moon_sharp-interpreter-coroutine_2 only.