Skip to main content

ast_rtti_index

Function ast_rtti_index 

Source
pub const fn ast_rtti_index(name: &str) -> i32
Expand description

Stable per-type class index, the analog of AstRtti<Class>::value. FNV-1a over the class name, folded to a positive i32 so it can never collide with a future “no class” sentinel (e.g. -1).