Open shumbo opened 1 year ago
Rust std has std::any::TypeId, which allows the comparison of types at runtime. Since it implements Hash, it should be possible to use this to compare type-level locations at runtime instead of ChoreographyLocation.
std::any::TypeId
Hash
ChoreographyLocation
https://doc.rust-lang.org/stable/std/any/struct.TypeId.html
We should explore if it is possible to replace ChoreographyLocation with TypeId, list its pros and cons and implement it if it is feasible to do so.
TypeId
Rust std has
std::any::TypeId
, which allows the comparison of types at runtime. Since it implementsHash
, it should be possible to use this to compare type-level locations at runtime instead ofChoreographyLocation
.https://doc.rust-lang.org/stable/std/any/struct.TypeId.html
We should explore if it is possible to replace
ChoreographyLocation
withTypeId
, list its pros and cons and implement it if it is feasible to do so.