Skip to main content

edge_id_from_i32

Function edge_id_from_i32 

Source
pub fn edge_id_from_i32(value: i32) -> Result<EdgeId, CatalogError>
Expand description

Parses a registered edge id from SPI/catalog storage.

§Errors

Returns CatalogError::InvalidEdgeId when value is negative or overflows u32.

§Performance

This function is O(1).