Skip to main content

tag_int

Function tag_int 

Source
pub fn tag_int(value: i64) -> u64
Expand description

Encode an i64 as a tagged integer.

Valid range: -(2^62) to (2^62 - 1). Values outside this range will silently overflow due to the left shift. This is acceptable because Seq’s integer range is documented as 63-bit signed.