Macro ref_or_debug_field

Source
macro_rules! ref_or_debug_field {
    ( $( $t:tt )+ ) => { ... };
}
Expand description

Macro to create a field using reference or debug formatting.

This macro attempts to convert the field to a reference to a string slice. If that is not possible, it falls back to using the Debug trait.