pub trait HasID<T: ID> {
// Required method
fn get_id(&self) -> &T;
}Expand description
Indicates that the struct has an ID field
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".