Add Archetype TypeInfo::type_name accessor (#980)
This commit is contained in:
parent
9f4c8b1b9a
commit
4833c2a7f4
@ -519,6 +519,12 @@ impl TypeInfo {
|
||||
pub(crate) unsafe fn drop(&self, data: *mut u8) {
|
||||
(self.drop)(data)
|
||||
}
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[inline]
|
||||
pub fn type_name(&self) -> &'static str {
|
||||
self.type_name
|
||||
}
|
||||
}
|
||||
|
||||
impl PartialOrd for TypeInfo {
|
||||
|
Loading…
Reference in New Issue
Block a user