Derive Macro trait_based_collection_macros::Drop
source · [−]#[derive(Drop)]
Expand description
This macro is used to derive the Drop
trait for all the data structures that implement the
Collection
trait. The drop implementation will call the clear
method of the collection.
This will remove all the elements from the collection ensuring that the elements are also
dropped.
Panics
This macro will panic if the input could not be properly parsed using the syn
crate.