Skip to main content

attr_key

Function attr_key 

Source
pub fn attr_key(key: &str) -> u64
Expand description

Hash of an attribute key, in its own domain so that an attribute and a root column of the same name do not share an entry.

A collision between two attribute keys merges their ranges, which widens one and prunes less. Widening is the safe direction, which is why 64 bits is enough here and why there is no need to store the key text.