Skip to main content

IFunctionDefinitionStatementMethods

Trait IFunctionDefinitionStatementMethods 

Source
pub trait IFunctionDefinitionStatementMethods: IFunctionDefinitionStatement {
    // Provided methods
    fn ctor(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        local: impl Into<bool>,
        local_token: impl Into<Token>,
    ) { ... }
    fn compile(self, bc: impl Into<ByteCode>) { ... }
    fn set_method(self, bc: impl Into<ByteCode>) -> i32 { ... }
    fn set_function(
        self,
        bc: impl Into<ByteCode>,
        num_pop: impl Into<i32>,
    ) -> i32 { ... }
}

Provided Methods§

Source

fn ctor( self, lcontext: impl Into<ScriptLoadingContext>, local: impl Into<bool>, local_token: impl Into<Token>, )

.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, bool, crate::moon_sharp::interpreter::tree::token::Token) overload

Source

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

Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode) overload

Source

fn set_method(self, bc: impl Into<ByteCode>) -> i32

SetMethod(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode) overload

Source

fn set_function(self, bc: impl Into<ByteCode>, num_pop: impl Into<i32>) -> i32

SetFunction(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode, 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: IFunctionDefinitionStatement> IFunctionDefinitionStatementMethods for __T

Available on crate feature moon_sharp-interpreter-tree-statements-functiondefinitionstatement only.