Skip to main content

index_of_token

Function index_of_token 

Source
pub fn index_of_token(token: &str) -> Option<TokenKind>
Expand description

The table uses open addressing. Keys of up to four bytes match their padded u32 exactly. Longer keys match a two-load signature and are compared byte for byte on signature hits. A miss skips the full comparison.