luaur-compiler 0.1.3

Luau source-to-bytecode compiler (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::functions::parallel_add_sat::parallel_add_sat;
use crate::records::cost::Cost;

impl Cost {
    pub fn operator_add_assign(&mut self, other: &Cost) {
        self.model = parallel_add_sat(self.model, other.model);
        self.constant = 0;
    }
}