Enum bindgen::NonCopyUnionStyle
source · 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
sourceimpl Clone for NonCopyUnionStyle
impl Clone for NonCopyUnionStyle
sourcefn clone(&self) -> NonCopyUnionStyle
fn clone(&self) -> NonCopyUnionStyle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NonCopyUnionStyle
impl Debug for NonCopyUnionStyle
sourceimpl Default for NonCopyUnionStyle
impl Default for NonCopyUnionStyle
sourceimpl FromStr for NonCopyUnionStyle
impl FromStr for NonCopyUnionStyle
sourceimpl PartialEq<NonCopyUnionStyle> for NonCopyUnionStyle
impl PartialEq<NonCopyUnionStyle> for NonCopyUnionStyle
sourcefn eq(&self, other: &NonCopyUnionStyle) -> bool
fn eq(&self, other: &NonCopyUnionStyle) -> bool
impl Copy for NonCopyUnionStyle
impl Eq for NonCopyUnionStyle
impl StructuralEq for NonCopyUnionStyle
impl StructuralPartialEq for NonCopyUnionStyle
Auto Trait Implementations
impl RefUnwindSafe for NonCopyUnionStyle
impl Send for NonCopyUnionStyle
impl Sync for NonCopyUnionStyle
impl Unpin for NonCopyUnionStyle
impl UnwindSafe for NonCopyUnionStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more