luaur-compiler 0.1.2

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::functions::parallel_mul_sat::parallel_mul_sat;
use crate::records::cost::Cost;

impl Cost {
    pub fn operator_mul(&self, other: i32) -> Cost {
        let mut result = Cost::default();
        result.model = parallel_mul_sat(self.model, other);
        result
    }
}

#[allow(dead_code)]
pub fn cost_operator_deref(self_: &Cost, other: i32) -> Cost {
    self_.operator_mul(other)
}