Add Archetype TypeInfo::type_name accessor (#980)

This commit is contained in:
Tomasz Sterna 2020-12-02 21:37:40 +01:00 committed by GitHub
parent 9f4c8b1b9a
commit 4833c2a7f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {