Skip to main content

IEnumerableWrapperMethods

Trait IEnumerableWrapperMethods 

Source
pub trait IEnumerableWrapperMethods: IEnumerableWrapper {
    // Provided methods
    fn ctor(self, script: impl Into<Script>, enumerator: impl Into<IEnumerator>) { ... }
    fn reset(self) { ... }
    fn get_next(self, prev: impl Into<DynValue>) -> DynValue { ... }
    fn lua_iterator_callback(
        self,
        execution_context: impl Into<ScriptExecutionContext>,
        args: impl Into<CallbackArguments>,
    ) -> DynValue { ... }
    fn index(
        self,
        script: impl Into<Script>,
        index: impl Into<DynValue>,
        is_direct_indexing: impl Into<bool>,
    ) -> DynValue { ... }
    fn set_index(
        self,
        script: impl Into<Script>,
        index: impl Into<DynValue>,
        value: impl Into<DynValue>,
        is_direct_indexing: impl Into<bool>,
    ) -> bool { ... }
    fn meta_index(
        self,
        script: impl Into<Script>,
        metaname: impl Into<Il2CppString>,
    ) -> DynValue { ... }
}

Provided Methods§

Source

fn ctor(self, script: impl Into<Script>, enumerator: impl Into<IEnumerator>)

.ctor(crate::moon_sharp::interpreter::script::Script, crate::system::collections::ienumerator::IEnumerator) overload

Source

fn reset(self)

Reset() overload

Source

fn get_next(self, prev: impl Into<DynValue>) -> DynValue

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

Source

fn lua_iterator_callback( self, execution_context: impl Into<ScriptExecutionContext>, args: impl Into<CallbackArguments>, ) -> DynValue

LuaIteratorCallback(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext, crate::moon_sharp::interpreter::callbackarguments::CallbackArguments) overload

Source

fn index( self, script: impl Into<Script>, index: impl Into<DynValue>, is_direct_indexing: impl Into<bool>, ) -> DynValue

Index(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::dynvalue::DynValue, bool) overload

Source

fn set_index( self, script: impl Into<Script>, index: impl Into<DynValue>, value: impl Into<DynValue>, is_direct_indexing: impl Into<bool>, ) -> bool

SetIndex(crate::moon_sharp::interpreter::script::Script, crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue, bool) overload

Source

fn meta_index( self, script: impl Into<Script>, metaname: impl Into<Il2CppString>, ) -> DynValue

MetaIndex(crate::moon_sharp::interpreter::script::Script, ::unity::Il2CppString) 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: IEnumerableWrapper> IEnumerableWrapperMethods for __T

Available on crate feature moon_sharp-interpreter-interop-enumerablewrapper only.