pub trait Identifiable {
    type Id;

    const UNKNOWN: Self::Id;

    fn id(&self) -> &Self::Id;
    fn name(&self) -> &str;
}
Expand description

A trait that helps identify which value of a type is which.

Required Associated Types

The type that identifies this type.

Required Associated Constants

Required Methods

Get the identifier of this value.

Implementors