Crate domain_map

source ·
Expand description

This module provides a simple datastructure that can store values associated with a domain name style key. Wildcard keys are supported.


  • A DomainMap is conceptually similar to a HashMap. The differences are that the keys are always domain name strings like “” and that a lookup that doesn’t have an exact match in the map is allowed to resolve through a wildcard entry, such as “”, if one has been inserted. A lookup for “” will not match the wildcard “” because it has fewer segments than the wildcard entry.