[go: up one dir, main page]

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§

Attribute Macros§

  • Companion macro for builder. You should place it on top of the impl block where you want to define methods with the builder macro.
  • 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.