Skip to main content

luaur_analysis/records/
generic_pack_mapping.rs

1//! Source: `Analysis/include/Luau/TypePath.h:115` (hand-ported)
2use crate::type_aliases::type_pack_id::TypePackId;
3
4#[allow(non_snake_case)]
5#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6pub struct GenericPackMapping {
7    pub mappedType: TypePackId,
8}
9
10impl GenericPackMapping {
11    pub fn operator_eq(&self, other: &GenericPackMapping) -> bool {
12        self.mappedType == other.mappedType
13    }
14}