Derive Macro trait_based_collection_macros::Default
source · [−]#[derive(Default)]
Expand description
This macro is used to derive the Default
a standard implementation for all the data
structures that implement the Collection
trait. The default implementation of the data
structure will use the new_default
method of the Collection
trait.
Panics
This macro will panic if the input could not be properly parsed using the syn
crate.