Skip to main content

node_id_from_ffi

Function node_id_from_ffi 

Source
pub fn node_id_from_ffi(ffi: u64) -> NodeId
Expand description

Decode a u64 back into a NodeId.

§Safety contract (logical, not unsafe)

The caller must pass a value previously obtained from node_id_to_ffi. Passing arbitrary integers produces a syntactically valid but semantically bogus key — any subsequent SlotMap lookup will simply return None.