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
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 ItemConfig
[src]
fn default() -> ItemConfig
fn function_prefix(&self, directives: &DirectiveSet) -> Option<String>
fn function_postfix(&self, directives: &DirectiveSet) -> Option<String>
fn enum_add_sentinel(&self, directives: &DirectiveSet) -> bool
fn struct_gen_op_eq(&self, directives: &DirectiveSet) -> bool
fn struct_gen_op_neq(&self, directives: &DirectiveSet) -> bool
fn struct_gen_op_lt(&self, directives: &DirectiveSet) -> bool
fn struct_gen_op_lte(&self, directives: &DirectiveSet) -> bool
fn struct_gen_op_gt(&self, directives: &DirectiveSet) -> bool
fn struct_gen_op_gte(&self, directives: &DirectiveSet) -> bool
Trait Implementations
impl Debug for ItemConfig
[src]
impl Clone for ItemConfig
[src]
fn clone(&self) -> ItemConfig
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