Trait PrintfUpperHexFormatter

Source
pub trait PrintfUpperHexFormatter {
    const FORMAT_ARG: &'static str;
}
Expand description

Trait used to produce printf style format strings for upper case hex formatted untyped format specifiers.

The const PrintfUpperHexFormatter::FORMAT_ARG is used to provide the printf format specifier (i.e. the x in %02x) for a given type in Rust. This must be const so that it can be used to build static const format strings at compile time.

Required Associated Constants§

Source

const FORMAT_ARG: &'static str

The format specifier for this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PrintfUpperHexFormatter for u32

Source§

const FORMAT_ARG: &'static str = "X"

Implementors§