Struct cbindgen::StructConfig
[−]
[src]
pub struct StructConfig { pub rename_fields: Option<RenameRule>, pub derive_eq: bool, pub derive_neq: bool, pub derive_lt: bool, pub derive_lte: bool, pub derive_gt: bool, pub derive_gte: bool, }
Settings to apply to generated structs.
Fields
rename_fields: Option<RenameRule>
The rename rule to apply to the name of struct fields
derive_eq: bool
Whether to generate a piecewise equality operator
derive_neq: bool
Whether to generate a piecewise inequality operator
derive_lt: bool
Whether to generate a less than operator on structs with one field
derive_lte: bool
Whether to generate a less than or equal to operator on structs with one field
derive_gt: bool
Whether to generate a greater than operator on structs with one field
derive_gte: bool
Whether to generate a greater than or equal to operator on structs with one field
Methods
impl StructConfig
[src]
fn derive_eq(&self, annotations: &AnnotationSet) -> bool
fn derive_neq(&self, annotations: &AnnotationSet) -> bool
fn derive_lt(&self, annotations: &AnnotationSet) -> bool
fn derive_lte(&self, annotations: &AnnotationSet) -> bool
fn derive_gt(&self, annotations: &AnnotationSet) -> bool
fn derive_gte(&self, annotations: &AnnotationSet) -> bool
Trait Implementations
impl Debug for StructConfig
[src]
impl Clone for StructConfig
[src]
fn clone(&self) -> StructConfig
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
impl Default for StructConfig
[src]
fn default() -> StructConfig
Returns the "default value" for a type. Read more