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
file_header: Option<String>
Optional text to output at the beginning of the file
file_trailer: Option<String>
Optional text to output at the end of the file
file_autogen_warning: Option<String>
Optional text to output at major sections to deter manual editing
file_include_version: bool
Include a comment with the version of cbindgen used to generate the file
function_prefix: Option<String>
Optional text to output before each function declaration
function_postfix: Option<String>
Optional text to output after each function declaration
enum_add_sentinel: bool
Whether to add a Sentinel
value at the end of every enum
This is useful in Gecko for IPC serialization
struct_gen_op_eq: bool
Whether to generate a piecewise equality operator
struct_gen_op_neq: bool
Whether to generate a piecewise inequality operator
struct_gen_op_lt: bool
Whether to generate a less than operator on structs with one field
struct_gen_op_lte: bool
Whether to generate a less than or equal to operator on structs with one field
struct_gen_op_gt: bool
Whether to generate a greater than operator on structs with one field
struct_gen_op_gte: bool
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]
impl Clone for Config
[src]
fn clone(&self) -> Config
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more