pub trait ID:
Eq
+ Hash
+ Borrow<str>
+ Clone
+ Display
+ Debug
+ From<String> {
// Required method
fn get_type_name() -> &'static str;
}Expand description
A trait for ID types
Required Methods§
Sourcefn get_type_name() -> &'static str
fn get_type_name() -> &'static str
Get the name of this type of ID (e.g. “commodity ID”, “region ID” etc.)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.