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 Bindgen.

Add a 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.

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

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

Returns the "default value" for a type. Read more