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

Methods

impl EnumConfig
[src]

Trait Implementations

impl Debug for EnumConfig
[src]

Formats the value using the given formatter.

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