Skip to main content

Module hash

Module hash 

Source
Expand description

Fast hash functions for selector matching. Fast hash functions for selector matching.

Provides FNV-1a hashing used by the arena (to compute per-node class/id hashes during tree building) and by the selector matcher (to reject non-matching nodes with a single integer comparison).

Functionsยง

class_bloom_bit
Compute a single bloom bit position from a class token.
selector_hash
FNV-1a hash of a byte slice, returning a u32.