luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
use alloc::string::String;

#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct RuntimeError {
    pub(crate) message: String,
}

impl RuntimeError {
    pub const fn new(message: String) -> Self {
        Self { message }
    }
}

#[allow(non_snake_case)]
impl RuntimeError {
    pub fn message(&self) -> &str {
        &self.message
    }
}