Derive Macro trait_based_collection::macros::Display
source · [−]#[derive(Display)]Expand description
This macro is used to derive the Display trait for all the data structures that implement
the Collection trait. The Display trait is implemented by iterating over the elements of
the data structure using iter and printing them using the Display trait of the type of the elements.
The elements are separated by a comma and enclosed in square brackets.
Panics
This macro will panic if the input could not be properly parsed using the [syn] crate.