Derive Macro DisplayDebug

Source
#[derive(DisplayDebug)]
Expand description

A procedural macro that implements the std::fmt::Display trait for a type, using the standard debug format ({:?}) for formatting.

This macro derives the Display implementation for a type, allowing it to be formatted using {:?} in formatting macros. It uses the inner_display_debug function to generate the implementation with the standard debug format.

§Parameters

  • input: The input token stream representing the Rust item (struct, enum, etc.) for which the Display implementation will be generated.

§Returns

  • TokenStream: The generated std::fmt::Display implementation for the type using the standard debug format.