Skip to main content

ILuaStateMethods

Trait ILuaStateMethods 

Source
pub trait ILuaStateMethods: ILuaState {
Show 13 methods // Provided methods fn get_execution_context(self) -> ScriptExecutionContext { ... } fn set_execution_context(self, value: impl Into<ScriptExecutionContext>) { ... } fn get_function_name(self) -> Il2CppString { ... } fn set_function_name(self, value: impl Into<Il2CppString>) { ... } fn ctor( self, execution_context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, function_name: impl Into<Il2CppString>, ) { ... } fn top(self, pos: impl Into<i32>) -> DynValue { ... } fn at(self, pos: impl Into<i32>) -> DynValue { ... } fn get_count(self) -> i32 { ... } fn push(self, v: impl Into<DynValue>) { ... } fn pop(self) -> DynValue { ... } fn get_top_array(self, num: impl Into<i32>) -> Array<DynValue> { ... } fn get_return_value(self, retvals: impl Into<i32>) -> DynValue { ... } fn discard(self, nargs: impl Into<i32>) { ... }
}

Provided Methods§

Source

fn get_execution_context(self) -> ScriptExecutionContext

get_ExecutionContext() overload

Source

fn set_execution_context(self, value: impl Into<ScriptExecutionContext>)

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

Source

fn get_function_name(self) -> Il2CppString

get_FunctionName() overload

Source

fn set_function_name(self, value: impl Into<Il2CppString>)

set_FunctionName(::unity::Il2CppString) overload

Source

fn ctor( self, execution_context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, function_name: impl Into<Il2CppString>, )

.ctor(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments, ::unity::Il2CppString) overload

Source

fn top(self, pos: impl Into<i32>) -> DynValue

Top(i32) overload

Source

fn at(self, pos: impl Into<i32>) -> DynValue

At(i32) overload

Source

fn get_count(self) -> i32

get_Count() overload

Source

fn push(self, v: impl Into<DynValue>)

Push(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn pop(self) -> DynValue

Pop() overload

Source

fn get_top_array(self, num: impl Into<i32>) -> Array<DynValue>

GetTopArray(i32) overload

Source

fn get_return_value(self, retvals: impl Into<i32>) -> DynValue

GetReturnValue(i32) overload

Source

fn discard(self, nargs: impl Into<i32>)

Discard(i32) 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: ILuaState> ILuaStateMethods for __T

Available on crate feature moon_sharp-interpreter-interop-lua_state_interop-luastate only.