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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.