luaur-common 0.1.3

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
/// `index()` / `typeId` — the active alternative's position.
pub fn variant_index<T0, T1, T2, T3, T4, T5, T6>(
    v: &crate::records::variant::Variant7<T0, T1, T2, T3, T4, T5, T6>,
) -> usize {
    v.index()
}