Struct cbindgen::Config [] [src]

pub struct Config {
    pub header: Option<String>,
    pub trailer: Option<String>,
    pub include_guard: Option<String>,
    pub autogen_warning: Option<String>,
    pub include_version: bool,
    pub namespace: Option<String>,
    pub namespaces: Option<Vec<String>>,
    pub braces: Braces,
    pub line_length: usize,
    pub tab_width: usize,
    pub language: Language,
    pub parse: ParseConfig,
    pub function: FunctionConfig,
    pub structure: StructConfig,
    pub enumeration: EnumConfig,
}

A collection of settings to customize the generated bindings.

Fields

Optional text to output at the beginning of the file

Optional text to output at the end of the file

Optional name to use for an include guard

Optional text to output at major sections to deter manual editing

Include a comment with the version of cbindgen used to generate the file

An optional name for the root namespace. Only applicable when language="C++"

An optional list of namespaces. Only applicable when language="C++"

The style to use for braces

The preferred length of a line, used for auto breaking function arguments

The amount of spaces in a tab

The language to output bindings for

The configuration options for parsing

The configuration options for functions

The configuration options for structs

The configuration options for enums

Methods

impl Config
[src]

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Config
[src]

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