pub enum NonCopyUnionStyle {
BindgenWrapper,
ManuallyDrop,
}
Expand description
Enum for how non-Copy unions should be translated.
Variants§
BindgenWrapper
Wrap members in a type generated by bindgen.
ManuallyDrop
Wrap members in ::core::mem::ManuallyDrop
.
Note: ManuallyDrop
was stabilized in Rust 1.20.0, do not use it if your
MSRV is lower.
Implementations§
Trait Implementations§
source§impl Clone for NonCopyUnionStyle
impl Clone for NonCopyUnionStyle
source§fn clone(&self) -> NonCopyUnionStyle
fn clone(&self) -> NonCopyUnionStyle
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 NonCopyUnionStyle
impl Debug for NonCopyUnionStyle
source§impl Default for NonCopyUnionStyle
impl Default for NonCopyUnionStyle
source§impl FromStr for NonCopyUnionStyle
impl FromStr for NonCopyUnionStyle
source§impl PartialEq<NonCopyUnionStyle> for NonCopyUnionStyle
impl PartialEq<NonCopyUnionStyle> for NonCopyUnionStyle
source§fn eq(&self, other: &NonCopyUnionStyle) -> bool
fn eq(&self, other: &NonCopyUnionStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.