pub struct Instantiation {
pub base: Substitution,
pub builtin_types: *mut BuiltinTypes,
pub level: TypeLevel,
pub scope: *mut Scope,
pub reusable_replace_generics: ReplaceGenerics,
}Fields§
§base: Substitution§builtin_types: *mut BuiltinTypes§level: TypeLevel§scope: *mut Scope§reusable_replace_generics: ReplaceGenericsImplementations§
Source§impl Instantiation
impl Instantiation
pub fn clean_type_id(&mut self, ty: TypeId) -> TypeId
Source§impl Instantiation
impl Instantiation
pub fn clean_type_pack_id(&mut self, tp: TypePackId) -> TypePackId
Source§impl Instantiation
impl Instantiation
pub fn ignore_children(&self, ty: TypeId) -> bool
Source§impl Instantiation
impl Instantiation
Sourcepub fn instantiation_new(
log: *const TxnLog,
arena: *mut TypeArena,
builtin_types: *mut BuiltinTypes,
level: TypeLevel,
scope: *mut Scope,
) -> Self
pub fn instantiation_new( log: *const TxnLog, arena: *mut TypeArena, builtin_types: *mut BuiltinTypes, level: TypeLevel, scope: *mut Scope, ) -> Self
C++ Instantiation(const TxnLog* log, TypeArena* arena, NotNull<BuiltinTypes> builtinTypes, TypeLevel level, Scope* scope) : Substitution(log, arena), builtinTypes(builtinTypes), level(level), scope(scope), reusableReplaceGenerics(log, arena, builtinTypes, level, scope, {}, {}).
pub fn substitute_type_id(&mut self, ty: TypeId) -> Option<TypeId>
pub fn substitute_type_pack_id(&mut self, tp: TypePackId) -> Option<TypePackId>
Source§impl Instantiation
impl Instantiation
pub fn is_dirty_type_id(&self, ty: TypeId) -> bool
Source§impl Instantiation
impl Instantiation
pub fn is_dirty_type_pack_id(&self, _tp: TypePackId) -> bool
Source§impl Instantiation
impl Instantiation
Trait Implementations§
Source§impl Clone for Instantiation
impl Clone for Instantiation
Source§fn clone(&self) -> Instantiation
fn clone(&self) -> Instantiation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for Instantiation
impl !Sync for Instantiation
impl Freeze for Instantiation
impl RefUnwindSafe for Instantiation
impl Unpin for Instantiation
impl UnsafeUnpin for Instantiation
impl UnwindSafe for Instantiation
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