Struct bindgen::Builder [] [src]

pub struct Builder<'a> { /* fields omitted */ }

A builder to generate bindings.

Methods

impl<'a> Builder<'a>
[src]

Returns a new builder for the C header to parse.

Add a pattern to filter which file to generate a binding for.

Add a clang CLI argument.

Add a library to link.

Force bindgen to exit if a type is not recognized.

Control if we should use the c builtins like __va_list.

Control if the generated structs will derive Debug.

Control if bindgen should convert the C enums to rust enums or rust constants.

Set the logger to use.

Overrides the type used to represent a C enum.

Set the prefix to remove from all the symbols, like libfoo_.

Controls if bindgen should also print the parsed AST (for debug).

Defines if we should use std or core for Option and such.

Sets the prefix to use for c_void and others.

Defines if we should convert float and double to f32 and f64.

The format is not defined, but is the same as in rust in all the supported platforms.

Turn macros definitions into const definitions, when possible

When converting macros, convert integers that would fit in a u8, u16, u32, u64, i8, i16, i32, i64 to the corresponding named C type the supplied list.

The Iterator must return exactly 8 items.

Generate the binding using the options previously set.

Trait Implementations

impl<'a> Debug for Builder<'a>
[src]

Formats the value using the given formatter.

impl<'a> Clone for Builder<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more