Skip to main content

view_node_id

Function view_node_id 

Source
pub fn view_node_id(rel_path: &str, kind: &str, scoped_name: &str) -> String
Expand description

A views store’s node id: vp plus 16 hex digits for a symbol, vt plus 16 hex digits for a file’s top level.

The digests are node_id’s. Views stores never hold node_id’s longer spellings, so the short class letters only have to keep the two classes apart and in the same order: symbol ids still sort before top-level ids, and ids of one class still sort by digest.