luaur-compile-cli 0.1.2

Command-line Luau source-to-bytecode compiler (Rust).
Documentation
use crate::records::compile_stats::CompileStats;

impl CompileStats {
    pub fn compile_stats_operator_add(&self, other: &CompileStats) -> CompileStats {
        let mut result = self.clone();
        result.compile_stats_operator_add_assign(other);
        result
    }
}

#[allow(non_snake_case)]
impl core::ops::Add<CompileStats> for CompileStats {
    type Output = CompileStats;

    fn add(self, other: CompileStats) -> Self::Output {
        self.compile_stats_operator_add(&other)
    }
}

#[allow(non_snake_case)]
impl core::ops::Add<&CompileStats> for &CompileStats {
    type Output = CompileStats;

    fn add(self, other: &CompileStats) -> Self::Output {
        self.compile_stats_operator_add(other)
    }
}