Trait RtkLuaScriptExecutor

Source
pub trait RtkLuaScriptExecutor:
    Send
    + Sync
    + Clone
    + 'static {
    // Required methods
    fn intake_version(&self, version: RtkRustcDriverVersion);
    fn query_method_calls(&self, query: MethodCallQuery) -> Vec<MethodCall>;
    fn query_trait_impls(&self, query: Location) -> Vec<TraitImpl>;
    fn query_functions(&self, query: Location) -> Vec<FunctionTypeValue>;
    fn query_function_calls(&self, query: Location) -> Vec<FunctionCall>;
    fn log_note(&self, msg: String);
    fn log_warn(&self, msg: String);
    fn log_error(&self, msg: String);
    fn log_fatal_error(&self, msg: String) -> !;
    fn emit(&self, text: String);

    // Provided method
    fn intake_debug_version(&self, version: RtkRustcDriverVersion) { ... }
}

Required Methods§

Source

fn intake_version(&self, version: RtkRustcDriverVersion)

Intake the driver version provided by the script

Source

fn query_method_calls(&self, query: MethodCallQuery) -> Vec<MethodCall>

Source

fn query_trait_impls(&self, query: Location) -> Vec<TraitImpl>

Source

fn query_functions(&self, query: Location) -> Vec<FunctionTypeValue>

Source

fn query_function_calls(&self, query: Location) -> Vec<FunctionCall>

Source

fn log_note(&self, msg: String)

Source

fn log_warn(&self, msg: String)

Source

fn log_error(&self, msg: String)

Source

fn log_fatal_error(&self, msg: String) -> !

Source

fn emit(&self, text: String)

Provided Methods§

Source

fn intake_debug_version(&self, version: RtkRustcDriverVersion)

Intake the driver version provided by the script to use when debug assertions are enabled

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§