pub trait Unique { type Valid: ValidID; // Required methods fn id(&self) -> &Self::Valid; fn into_id(self) -> Self::Valid; }
Any object that implements this type can turn into id
valid ID type for the specific item
Returns a refrence to the underlying ID
ID
Consumes self into its underlying ID