pub struct GLOBAL_CLASS_ID_MAP { /* private fields */ }Expand description
Global class ID map instance
Methods from Deref<Target = UnityClassIdMap>§
Sourcepub fn get_or_create(&self, class_id: &str, class_name: &str) -> String
pub fn get_or_create(&self, class_id: &str, class_name: &str) -> String
Get or create a class mapping
Sourcepub fn get_class_name(&self, class_id: i32) -> Option<String>
pub fn get_class_name(&self, class_id: i32) -> Option<String>
Get class name from class ID.
Sourcepub fn get_class_name_str(&self, class_id: i32) -> Option<&'static str>
pub fn get_class_name_str(&self, class_id: i32) -> Option<&'static str>
Get class name from class ID without allocating.
Trait Implementations§
Source§impl Deref for GLOBAL_CLASS_ID_MAP
impl Deref for GLOBAL_CLASS_ID_MAP
Source§type Target = UnityClassIdMap
type Target = UnityClassIdMap
The resulting type after dereferencing.
Source§fn deref(&self) -> &UnityClassIdMap
fn deref(&self) -> &UnityClassIdMap
Dereferences the value.
impl LazyStatic for GLOBAL_CLASS_ID_MAP
Auto Trait Implementations§
impl Freeze for GLOBAL_CLASS_ID_MAP
impl RefUnwindSafe for GLOBAL_CLASS_ID_MAP
impl Send for GLOBAL_CLASS_ID_MAP
impl Sync for GLOBAL_CLASS_ID_MAP
impl Unpin for GLOBAL_CLASS_ID_MAP
impl UnwindSafe for GLOBAL_CLASS_ID_MAP
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