Integer
Type name: int
Rust type: i64
An integer is a whole number, which can be positive, negative, or zero. Under the hood, integers are represented as 64-bit signed integers.
<int>42</int>
<int>-7</int>
<int>0</int>
Conversion to other types
When converting an int
to other types, it behaves exactly as you would expect: