Skip to main content

luaur_analysis/records/
generalization_constraint.rs

1use crate::type_aliases::type_id::TypeId;
2use alloc::vec::Vec;
3use luaur_ast::records::deprecated_info::DeprecatedInfo;
4
5#[derive(Debug, Clone, Default)]
6pub struct GeneralizationConstraint {
7    pub(crate) generalized_type: TypeId,
8    pub(crate) source_type: TypeId,
9    pub(crate) interior_types: Vec<TypeId>,
10    pub(crate) has_deprecated_attribute: bool,
11    pub(crate) deprecated_info: DeprecatedInfo,
12    pub(crate) no_generics: bool,
13}