Skip to content

Commit 4833c2a

Browse files
author
Tomasz Sterna
authored
Add Archetype TypeInfo::type_name accessor (#980)
1 parent 9f4c8b1 commit 4833c2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/bevy_ecs/src/core/archetype.rs

+6
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,12 @@ impl TypeInfo {
519519
pub(crate) unsafe fn drop(&self, data: *mut u8) {
520520
(self.drop)(data)
521521
}
522+
523+
#[allow(missing_docs)]
524+
#[inline]
525+
pub fn type_name(&self) -> &'static str {
526+
self.type_name
527+
}
522528
}
523529

524530
impl PartialOrd for TypeInfo {

0 commit comments

Comments
 (0)