Union pr47::data::wrapper::WrapperData [−][src]
#[repr(C)]
pub union WrapperData<T: 'static> {
pub owned: ManuallyDrop<MaybeUninit<T>>,
pub ptr: *mut T,
}
Expand description
Internal representation of Wrapper
data. Can be either
- A piece of owned data, represented by a
ManuallyDrop<MaybeUninit<T>>
- A reference to data shared from Rust, represented by a
*mut T
Fields
owned: ManuallyDrop<MaybeUninit<T>>
ptr: *mut T