mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Add Archetype TypeInfo::type_name accessor (#980)
This commit is contained in:
parent
9f4c8b1b9a
commit
4833c2a7f4
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue