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.


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


impl EnumConfig


Trait Implementations

impl Debug for EnumConfig


Formats the value using the given formatter.

impl Clone for EnumConfig


Returns a copy of the value. Read more


Performs copy-assignment from source. Read more

impl Default for EnumConfig


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