luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Source: `Analysis/include/Luau/TypePath.h:115` (hand-ported)
use crate::type_aliases::type_pack_id::TypePackId;

#[allow(non_snake_case)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct GenericPackMapping {
    pub mappedType: TypePackId,
}

impl GenericPackMapping {
    pub fn operator_eq(&self, other: &GenericPackMapping) -> bool {
        self.mappedType == other.mappedType
    }
}