pub struct Unifier2 { /* private fields */ }Implementations§
Source§impl Unifier2
impl Unifier2
pub fn fresh_type_pack( &mut self, scope: NonNull<Scope>, polarity: Polarity, ) -> TypePackId
Source§impl Unifier2
impl Unifier2
pub fn occurs_check( &mut self, seen: &mut DenseHashSet<TypeId>, needle: TypeId, haystack: TypeId, ) -> OccursCheckResult
Source§impl Unifier2
impl Unifier2
pub fn occurs_check_deprecated( &mut self, seen: &mut DenseHashSet<TypePackId>, needle: TypePackId, haystack: TypePackId, ) -> OccursCheckResult
Source§impl Unifier2
impl Unifier2
pub fn unifier_2_not_null_type_arena_not_null_builtin_types_not_null_scope_not_null_internal_error_reporter( arena: NonNull<TypeArena>, builtin_types: NonNull<BuiltinTypes>, scope: NonNull<Scope>, ice: NonNull<InternalErrorReporter>, ) -> Self
Source§impl Unifier2
impl Unifier2
pub fn unifier_2_not_null_type_arena_not_null_builtin_types_not_null_scope_not_null_internal_error_reporter_dense_hash_set_void( _arena: NonNull<TypeArena>, _builtin_types: NonNull<BuiltinTypes>, _scope: NonNull<Scope>, _ice: NonNull<InternalErrorReporter>, _uninhabited_type_functions: *mut DenseHashSet<*const c_void>, ) -> Self
Source§impl Unifier2
impl Unifier2
pub fn unify_free_with_type( &mut self, sub_ty: TypeId, super_ty: TypeId, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_pack( &mut self, sub_tp: TypePackId, super_tp: TypePackId, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_type_id_type_id( &mut self, sub_ty: TypeId, super_ty: TypeId, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_type_id_function_type( &mut self, sub_ty: TypeId, super_fn: &FunctionType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_union_type_type_id( &mut self, sub_union: &UnionType, super_ty: TypeId, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_type_id_union_type( &mut self, sub_ty: TypeId, super_union: &UnionType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_intersection_type_type_id( &mut self, sub_intersection: &IntersectionType, super_ty: TypeId, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_type_id_intersection_type( &mut self, sub_ty: TypeId, super_intersection: &IntersectionType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_table_type_table_type( &mut self, sub_table: &mut TableType, super_table: &TableType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_metatable_type_metatable_type( &mut self, sub_metatable: &MetatableType, super_metatable: &MetatableType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_any_type_function_type( &mut self, _sub_any: &AnyType, super_fn: &FunctionType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_function_type_any_type( &mut self, sub_fn: &FunctionType, _super_any: &AnyType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_any_type_table_type( &mut self, _sub_any: &AnyType, super_table: &TableType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_table_type_any_type( &mut self, sub_table: &TableType, _super_any: &AnyType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_metatable_type_any_type( &mut self, sub_metatable: &MetatableType, _super_any: &AnyType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_any_type_metatable_type( &mut self, _sub_any: &AnyType, super_metatable: &MetatableType, ) -> UnifyResult
Source§impl Unifier2
impl Unifier2
pub fn unify_type_pack_id_type_pack_id( &mut self, sub_tp: TypePackId, super_tp: TypePackId, ) -> UnifyResult
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Unifier2
impl !Send for Unifier2
impl !Sync for Unifier2
impl !UnwindSafe for Unifier2
impl Freeze for Unifier2
impl Unpin for Unifier2
impl UnsafeUnpin for Unifier2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more