bon-sandbox 3.9.1

Not a real crate! It's just a showcase of examples used by `bon`'s documentation to demonstrate the rustdoc output for code generated by builder macros. Don't use this crate, it doesn't follow semver at all and serves no other purpose other than linking to its docs as an example!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// This is extremely perplexing, but by wrapping the struct in a macro, the lints
// such as `private_bounds` or `clippy::missing_const_for_fn` are triggered if
// code generated by `bon` violates it. Without it no lint is triggered.
macro_rules! test {
    () => {
        #[derive(bon::Builder)]
        pub struct WrappedByMacroRules {
            _field: u32,
        }
    };
}

test!();