Macro architect_api::hcstrid
source · macro_rules! hcstrid { ($name:ident) => { ... }; }
Expand description
A hashconsed string identifier
This will generate a hashconsed string indexed identifier that is Copy, and has an in place size of one word. Equality, Comparison, and Hashing are all operations on a single pointer. The original string is recoverable as the name field. This is suitable for use with any indentifier that comes from a reasonably sized limited set, since the associated strings will never be deallocated it must not be used for identifiers from large sets.