Struct cbindgen::EnumConfig [] [src]

pub struct EnumConfig {
    pub rename_variants: Option<RenameRule>,
    pub add_sentinel: bool,
    pub prefix_with_name: 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

Trait Implementations

impl Debug for EnumConfig
[src]

[src]

Formats the value using the given formatter.

impl Clone for EnumConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for EnumConfig
[src]

[src]

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