Struct cbindgen::Config [] [src]

pub struct Config {
    pub file_header: Option<String>,
    pub file_trailer: Option<String>,
    pub file_autogen_warning: Option<String>,
    pub file_include_version: bool,
    pub function_prefix: Option<String>,
    pub function_postfix: Option<String>,
    pub enum_add_sentinel: bool,
    pub struct_gen_op_eq: bool,
    pub struct_gen_op_neq: bool,
    pub struct_gen_op_lt: bool,
    pub struct_gen_op_lte: bool,
    pub struct_gen_op_gt: bool,
    pub struct_gen_op_gte: bool,
}

Fields

Optional text to output at the beginning of the file

Optional text to output at the end of the file

Optional text to output at major sections to deter manual editing

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

Optional text to output before each function declaration

Optional text to output after each function declaration

Whether to add a Sentinel value at the end of every enum This is useful in Gecko for IPC serialization

Whether to generate a piecewise equality operator

Whether to generate a piecewise inequality operator

Whether to generate a less than operator on structs with one field

Whether to generate a less than or equal to operator on structs with one field

Whether to generate a greater than operator on structs with one field

Whether to generate a greater than or equal to operator on structs with one field

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