luaur_analysis/methods/clone_public_interface_is_dirty_module_alt_b.rs
1use crate::records::clone_public_interface::ClonePublicInterface;
2use crate::type_aliases::type_pack_id::TypePackId;
3
4impl ClonePublicInterface {
5 /// `bool ClonePublicInterface::isDirty(TypePackId tp)`.
6 /// Reference: `Module.cpp:146-149`.
7 pub fn is_dirty_type_pack_id(&mut self, tp: TypePackId) -> bool {
8 let module = unsafe { &*self.module };
9 let owning_arena = unsafe { (*tp).owningArena };
10 owning_arena == (&module.internal_types as *const _ as *mut _)
11 }
12}