pub struct ReplaceGenerics {
pub base: Substitution,
pub builtin_types: *mut BuiltinTypes,
pub level: TypeLevel,
pub scope: *mut Scope,
pub generics: Vec<TypeId>,
pub generic_packs: Vec<TypePackId>,
}Fields§
§base: Substitution§builtin_types: *mut BuiltinTypes§level: TypeLevel§scope: *mut Scope§generics: Vec<TypeId>§generic_packs: Vec<TypePackId>Implementations§
Source§impl ReplaceGenerics
impl ReplaceGenerics
pub fn clean_type_id(&mut self, ty: TypeId) -> TypeId
Source§impl ReplaceGenerics
impl ReplaceGenerics
pub fn clean_type_pack_id(&mut self, tp: TypePackId) -> TypePackId
Source§impl ReplaceGenerics
impl ReplaceGenerics
pub fn ignore_children(&self, ty: TypeId) -> bool
Source§impl ReplaceGenerics
impl ReplaceGenerics
pub fn is_dirty_type_id(&self, ty: TypeId) -> bool
Source§impl ReplaceGenerics
impl ReplaceGenerics
pub fn is_dirty_type_pack_id(&self, _tp: TypePackId) -> bool
Source§impl ReplaceGenerics
impl ReplaceGenerics
Sourcepub fn replace_generics_new(
log: *const TxnLog,
arena: *mut TypeArena,
builtin_types: *mut BuiltinTypes,
level: TypeLevel,
scope: *mut Scope,
generics: Vec<TypeId>,
generic_packs: Vec<TypePackId>,
) -> Self
pub fn replace_generics_new( log: *const TxnLog, arena: *mut TypeArena, builtin_types: *mut BuiltinTypes, level: TypeLevel, scope: *mut Scope, generics: Vec<TypeId>, generic_packs: Vec<TypePackId>, ) -> Self
C++ ReplaceGenerics(const TxnLog* log, TypeArena* arena, NotNull<BuiltinTypes> builtinTypes, TypeLevel level, Scope* scope, const std::vector<TypeId>& generics, const std::vector<TypePackId>& genericPacks) : Substitution(log, arena), ....
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 ReplaceGenerics
impl ReplaceGenerics
pub fn reset_state( &mut self, log: *const TxnLog, arena: *mut TypeArena, builtin_types: *mut BuiltinTypes, level: TypeLevel, scope: *mut Scope, generics: Vec<TypeId>, generic_packs: Vec<TypePackId>, )
Trait Implementations§
Source§impl Clone for ReplaceGenerics
impl Clone for ReplaceGenerics
Source§fn clone(&self) -> ReplaceGenerics
fn clone(&self) -> ReplaceGenerics
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 ReplaceGenerics
impl !Sync for ReplaceGenerics
impl Freeze for ReplaceGenerics
impl RefUnwindSafe for ReplaceGenerics
impl Unpin for ReplaceGenerics
impl UnsafeUnpin for ReplaceGenerics
impl UnwindSafe for ReplaceGenerics
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