Trait core::fmt::num::GenericRadix
source · unsafe trait GenericRadix: Sized {
const BASE: u8;
const PREFIX: &'static str;
// Required method
fn digit(x: u8) -> u8;
// Provided method
fn fmt_int<T: DisplayInt>(&self, x: T, f: &mut Formatter<'_>) -> Result { ... }
}
Expand description
Required Associated Constants§
Required Methods§
Provided Methods§
sourcefn fmt_int<T: DisplayInt>(&self, x: T, f: &mut Formatter<'_>) -> Result
fn fmt_int<T: DisplayInt>(&self, x: T, f: &mut Formatter<'_>) -> Result
Format an integer using the radix using a formatter.