push_integer_62 in rustc_symbol_mangling::v0 - Rust
Description: Push a `_`-terminated base 62 integer, using the format specified in the RFC as `<base-62-number>`, that is:

Skip to main content

## push_integer_62

# Function push_integer_62

Source

    pub(crate) fn push_integer_62(x: u64, output: &mut String)

Expand description

Push a `_`-terminated base 62 integer, using the format specified in the RFC as `<base-62-number>`, that is:

- `x = 0` is encoded as just the `"_"` terminator
- `x > 0` is encoded as `x - 1` in base 62, followed by `"_"`, e.g. `1` becomes `"0_"`, `62` becomes `"Z_"`, etc.