luaur_analysis/methods/txn_log_replace_txn_log.rs
1use crate::records::pending_type::PendingType;
2use crate::records::r#type::Type;
3use crate::records::txn_log::TxnLog;
4use crate::type_aliases::type_id::TypeId;
5
6impl TxnLog {
7 pub fn replace_type_id_t<T>(&mut self, ty: TypeId, replacement: T) -> *mut PendingType
8 where
9 T: Into<Type>,
10 {
11 let replacement_type: Type = replacement.into();
12 self.replace_type_id_type_item(ty, replacement_type)
13 }
14}