Trait FormatArgument

Source
pub trait FormatArgument {
    type Details: 'static + Copy;
}
Expand description

Type that can be formatted. Implemented for standard integer types, &str and char.

Required Associated Types§

Source

type Details: 'static + Copy

Formatting specification for the 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 FormatArgument for &str

Source§

type Details = StrFormat

Source§

impl FormatArgument for char

Source§

impl FormatArgument for i8

Source§

impl FormatArgument for i16

Source§

impl FormatArgument for i32

Source§

impl FormatArgument for i64

Source§

impl FormatArgument for i128

Source§

impl FormatArgument for isize

Source§

impl FormatArgument for u8

Source§

impl FormatArgument for u16

Source§

impl FormatArgument for u32

Source§

impl FormatArgument for u64

Source§

impl FormatArgument for u128

Source§

impl FormatArgument for usize

Implementors§

Source§

impl FormatArgument for Ascii<'_>

Source§

type Details = StrFormat

Source§

impl<const CAP: usize> FormatArgument for &CompileArgs<CAP>