pub trait CustomRegistryKind {
// Required method
fn kind(&self) -> &'static str;
}Expand description
The name of a custom value’s kind, reachable through dyn CustomRegistryValue.
Blanket-implemented from CustomRegistryValue::kind_name. There is nothing to write by hand.
It exists because kind_name is where Self: Sized, as an associated function has to be, or
CustomRegistryValue would not be dyn-compatible and could not be boxed into
RegistryItem::Custom.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".