luaur_analysis/functions/
get_mutable_txn_log.rs1use crate::functions::get_mutable_type::get_mutable_type_id;
5use crate::records::pending_type::PendingType;
6use crate::records::r#type::Type;
7use crate::type_aliases::type_variant::TypeVariantMember;
8
9pub unsafe fn get_mutable_pending_type<T: TypeVariantMember + 'static>(
11 pending: *mut PendingType,
12) -> *mut T {
13 get_mutable_type_id::<T>(&(*pending).pending as *const Type)
15}
16
17#[allow(unused_imports)]
18pub use get_mutable_pending_type as get_mutable;