Enum autocxx_bindgen::EnumVariation [−][src]
pub enum EnumVariation { Rust { non_exhaustive: bool, }, NewType { is_bitfield: bool, }, Consts, ModuleConsts, }
A helper type that represents different enum variations.
Variants
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.
Show fields
Fields of Rust
non_exhaustive: bool
Indicates whether the generated struct should be #[non_exhaustive]
The code for this enum will use a newtype
Show fields
Fields of NewType
is_bitfield: bool
Indicates whether the newtype will have bitwise operators
The code for this enum will use consts
The code for this enum will use a module containing consts
Trait Implementations
impl Clone for EnumVariation
[src]
impl Clone for EnumVariation
[src]fn clone(&self) -> EnumVariation
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EnumVariation
[src]
impl Copy for EnumVariation
[src]impl Default for EnumVariation
[src]
impl Default for EnumVariation
[src]fn default() -> EnumVariation
[src]
impl FromStr for EnumVariation
[src]
impl FromStr for EnumVariation
[src]impl PartialEq<EnumVariation> for EnumVariation
[src]
impl PartialEq<EnumVariation> for EnumVariation
[src]fn eq(&self, other: &EnumVariation) -> bool
[src]
fn ne(&self, other: &EnumVariation) -> bool
[src]
impl StructuralPartialEq for EnumVariation
[src]
impl StructuralPartialEq for EnumVariation
[src]Auto Trait Implementations
impl RefUnwindSafe for EnumVariation
impl RefUnwindSafe for EnumVariation
impl Send for EnumVariation
impl Send for EnumVariation
impl Sync for EnumVariation
impl Sync for EnumVariation
impl Unpin for EnumVariation
impl Unpin for EnumVariation
impl UnwindSafe for EnumVariation
impl UnwindSafe for EnumVariation