Struct cbindgen::ItemConfig [] [src]

pub struct ItemConfig {
    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 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 ItemConfig
[src]

Trait Implementations

impl Debug for ItemConfig
[src]

Formats the value using the given formatter.

impl Clone for ItemConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more