Skip to main content

NOT_A_KEYWORD

Constant NOT_A_KEYWORD 

Source
pub const NOT_A_KEYWORD: u16 = u16::MAX; // 65_535u16
Expand description

A word is not a keyword.

u16::MAX rather than an Option<u16>, which would be four bytes and would put a branch on the path that reads the keyword out. There are 514 keywords and there is no prospect of 65,535.