pub struct ApplyMappedGenerics { /* private fields */ }Expand description
C++ ApplyMappedGenerics (Subtyping.cpp): a Substitution subclass, so it
embeds base: Substitution and inherits substitute (whose traversal
virtual-dispatches into the isDirty / clean / ignoreChildren overrides
installed via SubstitutionVtable).
Implementations§
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
pub fn apply_mapped_generics( &mut self, builtin_types: *mut BuiltinTypes, arena: *mut TypeArena, env: &mut SubtypingEnvironment, ice_reporter: *mut InternalErrorReporter, )
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
Sourcepub fn substitute_type_id(&mut self, ty: TypeId) -> Option<TypeId>
pub fn substitute_type_id(&mut self, ty: TypeId) -> Option<TypeId>
Inherited Substitution::substitute(TypeId) with override dispatch wired.
Sourcepub fn substitute_type_pack_id(&mut self, tp: TypePackId) -> Option<TypePackId>
pub fn substitute_type_pack_id(&mut self, tp: TypePackId) -> Option<TypePackId>
Inherited Substitution::substitute(TypePackId) with override dispatch wired.
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
pub fn clean_type_id(&mut self, ty: TypeId) -> TypeId
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
pub fn clean_type_pack_id(&mut self, tp: TypePackId) -> TypePackId
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
pub fn ignore_children_type_id(&mut self, ty: TypeId) -> bool
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
pub fn ignore_children_type_pack_id(&mut self, ty: TypePackId) -> bool
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
pub fn is_dirty_type_id(&mut self, ty: TypeId) -> bool
Source§impl ApplyMappedGenerics
impl ApplyMappedGenerics
pub fn is_dirty_type_pack_id(&mut self, tp: TypePackId) -> bool
Trait Implementations§
Source§impl Clone for ApplyMappedGenerics
impl Clone for ApplyMappedGenerics
Source§fn clone(&self) -> ApplyMappedGenerics
fn clone(&self) -> ApplyMappedGenerics
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 !RefUnwindSafe for ApplyMappedGenerics
impl !Send for ApplyMappedGenerics
impl !Sync for ApplyMappedGenerics
impl !UnwindSafe for ApplyMappedGenerics
impl Freeze for ApplyMappedGenerics
impl Unpin for ApplyMappedGenerics
impl UnsafeUnpin for ApplyMappedGenerics
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