pub struct Replacer { /* private fields */ }Implementations§
Source§impl Replacer
impl Replacer
pub fn clean_type_pack_id(&mut self, tp: TypePackId) -> TypePackId
Source§impl Replacer
impl Replacer
pub fn is_dirty_type_pack_id(&self, tp: TypePackId) -> bool
Source§impl Replacer
impl Replacer
pub fn replacer( arena: *mut TypeArena, replacements: *mut DenseHashMap<TypeId, TypeId>, replacement_packs: *mut DenseHashMap<TypePackId, TypePackId>, ) -> Self
pub fn substitute_type_id(&mut self, ty: TypeId) -> Option<TypeId>
pub fn substitute_type_pack_id(&mut self, tp: TypePackId) -> Option<TypePackId>
Trait Implementations§
Auto Trait Implementations§
impl !Send for Replacer
impl !Sync for Replacer
impl Freeze for Replacer
impl RefUnwindSafe for Replacer
impl Unpin for Replacer
impl UnsafeUnpin for Replacer
impl UnwindSafe for Replacer
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