pub trait UniqueId<T> {
// Required method
fn get_id(&self) -> T;
}
Expand description
UniqueId
trait defines the interface of an object with an unique id,
for general purposes crossing over many modules of fpRust.
§Remarks
This is inspired by Java/Swift Hashable.