Crate bon_macros
source ·Expand description
§bon-macros
This is a proc-macro crate that is supposed to be a private implementation detail of the bon
crate. Don’t add it to your dependencies directly! The API surface of this crate is unstable, and your code may break if you use items from bon-macros
bypassing the bon
crate. Instead, use the proc macros from here via the reexports in the bon
crate.
Macros§
- Creates any map-like collection that implements
FromIterator<(K, V)>
. - Creates any set-like collection that implements
FromIterator<T>
.
Attribute Macros§
- Can be placed on top of a free function or an associated method or a struct declaration. Generates a builder for the item beneath it.