luaur-require 0.1.0

Require-by-string module resolution for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::records::error_handler::ErrorHandler;
use crate::records::runtime_error_handler::RuntimeErrorHandler;

impl RuntimeErrorHandler {
    pub fn report_error(&mut self, message: alloc::string::String) {
        self.error_message = self.error_prefix.clone() + &message;
    }
}

impl ErrorHandler for RuntimeErrorHandler {
    fn report_error(&mut self, message: alloc::string::String) {
        RuntimeErrorHandler::report_error(self, message);
    }
}