@@ -35,20 +35,20 @@ use helpers::ignore;
35
35
/// a block of code with the following items:
36
36
///
37
37
/// - `default`: The default value for the field. If this item is omitted, `Default::default()` is
38
- /// used instead, meaning that the type of the field must implement `Default`.
38
+ /// used instead, meaning that the type of the field must implement `Default`.
39
39
/// - `methods`: A block of code containing methods for the `Builder` type. These methods should be
40
- /// related to the field being declared.
40
+ /// related to the field being declared.
41
41
/// - `as_args`: This item declares how the field should be converted into a valid CLI argument for
42
- /// `bindgen` and is used in the [`Builder::command_line_flags`] method which is used to do a
43
- /// roundtrip test of the CLI args in the `bindgen-test` crate. This item can take one of the
44
- /// following:
42
+ /// `bindgen` and is used in the [`Builder::command_line_flags`] method which is used to do a
43
+ /// roundtrip test of the CLI args in the `bindgen-test` crate. This item can take one of the
44
+ /// following:
45
45
/// - A string literal with the flag if the type of the field implements the [`AsArgs`] trait.
46
46
/// - A closure with the signature `|field, args: &mut Vec<String>| -> ()` that pushes arguments
47
- /// into the `args` buffer based on the value of the field. This is used if the field does not
48
- /// implement `AsArgs` or if the implementation of the trait is not logically correct for the
49
- /// option and a custom behavior must be taken into account.
47
+ /// into the `args` buffer based on the value of the field. This is used if the field does not
48
+ /// implement `AsArgs` or if the implementation of the trait is not logically correct for the
49
+ /// option and a custom behavior must be taken into account.
50
50
/// - The `ignore` literal, which does not emit any CLI arguments for this field. This is useful
51
- /// if the field cannot be used from the `bindgen` CLI.
51
+ /// if the field cannot be used from the `bindgen` CLI.
52
52
///
53
53
/// As an example, this would be the declaration of a `bool` field called `be_fun` whose default
54
54
/// value is `false` (the `Default` value for `bool`):
0 commit comments