bon_sandbox/docs_comparison/functions.rs
1/// Example docs generated with `bon`
2pub mod bon {
3 /// Doc comment on `function`
4 #[bon::builder]
5 pub fn function(
6 /// Doc comment on `x1`
7 x1: u32,
8
9 /// Doc comment on `x2`
10 #[builder(default = 2 + 2)]
11 x2: u32,
12
13 /// Doc comment on `x3`
14 x3: Option<u32>,
15
16 /// Doc comment on `x4`
17 #[builder(into)]
18 x4: String,
19 ) {
20 }
21}