Derive Macro bevy_internal::reflect::prelude::TypePath
source · #[derive(TypePath)]
{
// Attributes available to this derive:
#[type_path]
#[type_name]
}
Expand description
Derives the TypePath
trait, providing a stable alternative to [std::any::type_name
].
Container Attributes
#[type_path = "my_crate::foo"]
Optionally specifies a custom module path to use instead of [module_path
].
This path does not include the final identifier.
#[type_name = "RenamedType"]
Optionally specifies a new terminating identifier for TypePath
.
To use this attribute, #[type_path = "..."]
must also be specified.