@@ -182,41 +182,41 @@ impl Builder {
182
182
self
183
183
}
184
184
185
- /// Hide the given type from the generated bindings.
185
+ /// Hide the given type from the generated bindings. Regular expressions are supported.
186
186
pub fn hide_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
187
187
self . options . hidden_types . insert ( arg) ;
188
188
self
189
189
}
190
190
191
- /// Treat the given type as opaque in the generated bindings.
191
+ /// Treat the given type as opaque in the generated bindings. Regular expressions are supported.
192
192
pub fn opaque_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
193
193
self . options . opaque_types . insert ( arg) ;
194
194
self
195
195
}
196
196
197
197
/// Whitelist the given type so that it (and all types that it transitively
198
- /// refers to) appears in the generated bindings.
198
+ /// refers to) appears in the generated bindings. Regular expressions are supported.
199
199
pub fn whitelisted_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
200
200
self . options . whitelisted_types . insert ( arg) ;
201
201
self
202
202
}
203
203
204
204
/// Whitelist the given function so that it (and all types that it
205
- /// transitively refers to) appears in the generated bindings.
205
+ /// transitively refers to) appears in the generated bindings. Regular expressions are supported.
206
206
pub fn whitelisted_function < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
207
207
self . options . whitelisted_functions . insert ( arg) ;
208
208
self
209
209
}
210
210
211
211
/// Whitelist the given variable so that it (and all types that it
212
- /// transitively refers to) appears in the generated bindings.
212
+ /// transitively refers to) appears in the generated bindings. Regular expressions are supported.
213
213
pub fn whitelisted_var < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
214
214
self . options . whitelisted_vars . insert ( arg) ;
215
215
self
216
216
}
217
217
218
218
/// Mark the given enum (or set of enums, if using a pattern) as being
219
- /// bitfield-like.
219
+ /// bitfield-like. Regular expressions are supported.
220
220
///
221
221
/// This makes bindgen generate a type that isn't a rust `enum`.
222
222
pub fn bitfield_enum < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
@@ -350,7 +350,7 @@ impl Builder {
350
350
self
351
351
}
352
352
353
- /// Avoid generating any unstable Rust in the generated bindings.
353
+ /// Avoid generating any unstable Rust, such as Rust unions, in the generated bindings.
354
354
pub fn no_unstable_rust ( mut self ) -> Builder {
355
355
self . options . unstable_rust = false ;
356
356
self
0 commit comments