Enum autocxx_bindgen::EnumVariation
source · pub enum EnumVariation {
Rust {
non_exhaustive: bool,
},
NewType {
is_bitfield: bool,
is_global: bool,
},
Consts,
ModuleConsts,
}
Expand description
A helper type that represents different enum variations.
Variants§
Rust
The code for this enum will use a Rust enum. Note that creating this in unsafe code (including FFI) with an invalid value will invoke undefined behaviour, whether or not its marked as non_exhaustive.
NewType
Fields
The code for this enum will use a newtype
Consts
The code for this enum will use consts
ModuleConsts
The code for this enum will use a module containing consts
Trait Implementations§
source§impl Clone for EnumVariation
impl Clone for EnumVariation
source§fn clone(&self) -> EnumVariation
fn clone(&self) -> EnumVariation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EnumVariation
impl Debug for EnumVariation
source§impl Default for EnumVariation
impl Default for EnumVariation
source§fn default() -> EnumVariation
fn default() -> EnumVariation
Returns the “default value” for a type. Read more
source§impl FromStr for EnumVariation
impl FromStr for EnumVariation
source§impl PartialEq<EnumVariation> for EnumVariation
impl PartialEq<EnumVariation> for EnumVariation
source§fn eq(&self, other: &EnumVariation) -> bool
fn eq(&self, other: &EnumVariation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.