luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::records::scoped_exit::ScopedExit;
use luaur_common::macros::luau_assert::LUAU_ASSERT;

impl ScopedExit {
    pub fn scoped_exit_function_void(f: alloc::boxed::Box<dyn FnOnce()>) -> Self {
        let func = Some(f);
        LUAU_ASSERT!(func.is_some());
        Self { func }
    }
}