Struct cbindgen::StructConfig [] [src]

pub struct StructConfig {
    pub rename_fields: Option<RenameRule>,
    pub derive_constructor: bool,
    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

The rename rule to apply to the name of struct fields

Whether to generate a constructor for the struct (which takes arguments to initialize all the members)

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

Trait Implementations

impl Debug for StructConfig
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for StructConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for StructConfig
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for StructConfig

impl Sync for StructConfig