pub trait Identifiable {
// Required method
fn id(&self) -> u64;
}Expand description
Trait for types that have a unique identifier.
Provides:
- id(): Get the unique ID for this item
pub trait Identifiable {
// Required method
fn id(&self) -> u64;
}Trait for types that have a unique identifier.
Provides: