Struct cbindgen::EnumConfig[][src]

pub struct EnumConfig {
    pub rename_variants: Option<RenameRule>,
    pub add_sentinel: bool,
    pub prefix_with_name: bool,
    pub derive_helper_methods: bool,
}

Settings to apply to generated enums.

Fields

The rename rule to apply to the name of enum variants

Whether to add a Sentinel value at the end of every enum This is useful in Gecko for IPC serialization

Whether the enum variants should be prefixed with the enum name

Whether to generate static ::X(..) constructors and IsX() methods for tagged enums.

Trait Implementations

impl Debug for EnumConfig
[src]

Formats the value using the given formatter. Read more

impl Clone for EnumConfig
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for EnumConfig
[src]

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

Auto Trait Implementations

impl Send for EnumConfig

impl Sync for EnumConfig