Skip to main content

INodeBaseMethods

Trait INodeBaseMethods 

Source
pub trait INodeBaseMethods: INodeBase {
    // Provided methods
    fn get_script(self) -> Script { ... }
    fn set_script(self, value: impl Into<Script>) { ... }
    fn get_loading_context(self) -> ScriptLoadingContext { ... }
    fn set_loading_context(self, value: impl Into<ScriptLoadingContext>) { ... }
    fn ctor(self, lcontext: impl Into<ScriptLoadingContext>) { ... }
    fn compile(self, bc: impl Into<ByteCode>) { ... }
}

Provided Methods§

Source

fn get_script(self) -> Script

get_Script() overload

Source

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

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

Source

fn get_loading_context(self) -> ScriptLoadingContext

get_LoadingContext() overload

Source

fn set_loading_context(self, value: impl Into<ScriptLoadingContext>)

set_LoadingContext(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload

Source

fn ctor(self, lcontext: impl Into<ScriptLoadingContext>)

.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload

Source

fn compile(self, bc: impl Into<ByteCode>)

Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode) 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: INodeBase> INodeBaseMethods for __T

Available on crate feature moon_sharp-interpreter-tree-nodebase only.