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
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
derive_helper_methods: bool
Whether to generate static ::X(..)
constructors and IsX()
methods for tagged enums.
Trait Implementations
impl Debug for EnumConfig
[src]
impl Debug for EnumConfig
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for EnumConfig
[src]
impl Clone for EnumConfig
fn clone(&self) -> EnumConfig
[src]
fn clone(&self) -> EnumConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for EnumConfig
[src]
impl Default for EnumConfig
fn default() -> EnumConfig
[src]
fn default() -> EnumConfig
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for EnumConfig
impl Send for EnumConfig
impl Sync for EnumConfig
impl Sync for EnumConfig