Trait PrintfArgsList

Source
pub trait PrintfArgsList {
    type First: PrintfArgument;
    type Rest: PrintfArgsList;

    const IS_EMPTY: bool;
}
Expand description

A PrintfArgs in a form more amenable to recursive processing.

Required Associated Constants§

Source

const IS_EMPTY: bool

Whether this type represents an empty list.

Required Associated Types§

Source

type First: PrintfArgument

The first element of the list.

Source

type Rest: PrintfArgsList

The elements of the list after the first.

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 PrintfArgsList for ()

Source§

type First = u8

This isn’t really the first element of an empty list, but to fulfil the type constraint, we need something here.

Source§

const IS_EMPTY: bool = true

Source§

type Rest = ()

Source§

impl<CAR: PrintfArgument, CDR: PrintfArgsList> PrintfArgsList for (CAR, CDR)

Source§

const IS_EMPTY: bool = false

Source§

type First = CAR

Source§

type Rest = CDR

Implementors§