Skip to main content

IDynamicExpressionMethods

Trait IDynamicExpressionMethods 

Source
pub trait IDynamicExpressionMethods: IDynamicExpression {
    // Provided methods
    fn ctor(
        self,
        s: impl Into<Script>,
        str_expr: impl Into<Il2CppString>,
        expr: impl Into<DynamicExprExpression>,
    ) { ... }
    fn ctor_2(
        self,
        s: impl Into<Script>,
        str_expr: impl Into<Il2CppString>,
        constant: impl Into<DynValue>,
    ) { ... }
    fn evaluate(self, context: impl Into<ScriptExecutionContext>) -> DynValue { ... }
    fn find_symbol(
        self,
        context: impl Into<ScriptExecutionContext>,
    ) -> SymbolRef { ... }
    fn get_owner_script(self) -> Script { ... }
    fn set_owner_script(self, value: impl Into<Script>) { ... }
    fn is_constant(self) -> bool { ... }
    fn get_hash_code(self) -> i32 { ... }
    fn equals(self, obj: impl Into<Object>) -> bool { ... }
}

Provided Methods§

Source

fn ctor( self, s: impl Into<Script>, str_expr: impl Into<Il2CppString>, expr: impl Into<DynamicExprExpression>, )

.ctor(crate::moon_sharp::interpreter::script::Script, ::unity::Il2CppString, crate::moon_sharp::interpreter::tree::expressions::dynamicexprexpression::DynamicExprExpression) overload

Source

fn ctor_2( self, s: impl Into<Script>, str_expr: impl Into<Il2CppString>, constant: impl Into<DynValue>, )

.ctor(crate::moon_sharp::interpreter::script::Script, ::unity::Il2CppString, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

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

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

Source

fn find_symbol(self, context: impl Into<ScriptExecutionContext>) -> SymbolRef

FindSymbol(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext) 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 is_constant(self) -> bool

IsConstant() overload

Source

fn get_hash_code(self) -> i32

GetHashCode() overload

Source

fn equals(self, obj: impl Into<Object>) -> bool

Equals(crate::system::object::Object) 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: IDynamicExpression> IDynamicExpressionMethods for __T

Available on crate feature moon_sharp-interpreter-dynamicexpression only.