num_runtime_fmt/base.rs
1/// The base / format with which to represent this number.
2///
3/// - `Binary`: Emit this number's binary representation
4/// - `Octal`: Emit this number's octal representation
5/// - `Decimal`: Emit this number's decimal representation (default)
6/// - `LowerHex`: Emit this number's hexadecimal representation with lowercase letters
7/// - `UpperHex`: Emit this number's hexadecimal representation with uppercase letters
8#[derive(Clone, Copy, PartialEq, Eq, Debug)]
9pub enum Base {
10 Binary,
11 Octal,
12 Decimal,
13 LowerHex,
14 UpperHex,
15}
16
17impl Default for Base {
18 #[inline]
19 fn default() -> Self {
20 Self::Decimal
21 }
22}