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
rename_variants: Option<RenameRule>
The rename rule to apply to the name of enum variants
add_sentinel: bool
Whether to add a Sentinel
value at the end of every enum
This is useful in Gecko for IPC serialization
prefix_with_name: bool
Whether the enum variants should be prefixed with the enum name
Trait Implementations
impl Debug for EnumConfig
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for EnumConfig
[src]
fn clone(&self) -> EnumConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for EnumConfig
[src]
fn default() -> EnumConfig
[src]
Returns the "default value" for a type. Read more