Crate heron_rebuild_intern

Source

Structs§

PackedInterner
Interner that checks for duplicates and will only intern a given string once. Using the lasso/rodeo hack for packed maps. First param (“Key”) is the id and must be big enough to fit total items; Second param (“Idx”) is an index into the string and must be greater than string len.
Strs
An interner that has been frozen and does not allow adding new strings. We freeze it by discarding the string-to-key mapping, so we can’t look up ids for strings anymore either.
TypedInterner

Enums§

Error

Traits§

GetStr
Trait for interners that can retrieve an interned string based on some Key.
InternStr
Trait for interners that can intern a string and return a Key. use to retrieve it later.

Type Aliases§

LooseInterner
If you don’t want to bother to check for duplicates with PackedInterner, just use this directly:
TypedStrs
convenience