pub trait AliasStore { // Required methods fn alias(&self, nid: &NodeId) -> Option<Alias>; fn reverse_lookup(&self, alias: &Alias) -> BTreeMap<Alias, BTreeSet<NodeId>>; }
A trait for different sources which can potentially return an alias.
Returns alias of a NodeId.
NodeId
Return all the NodeIds that match the alias.
alias
Note that the implementation may choose to allow the alias to be a substring for more dynamic queries, thus a BTreeMap is returned to return the full Alias and matching NodeIds.
BTreeMap
Alias