Skip to main content

CustomOwner

Struct CustomOwner 

Source
#[doc(hidden)]
pub struct CustomOwner(/* private fields */);
🔬This is a nightly-only experimental API. (core_io_internals)

Implementations§

Source§

impl CustomOwner

Source

#[doc(hidden)]
pub unsafe fn from_raw(custom: NonNull<Custom>) -> CustomOwner

🔬This is a nightly-only experimental API. (core_io_internals)
§Safety
  • The outer_drop of the provided custom must be safe to call exactly once.
Source

pub fn into_raw(self) -> NonNull<Custom>

🔬This is a nightly-only experimental API. (core_io_internals)

Trait Implementations§

Source§

impl Debug for CustomOwner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Drop for CustomOwner

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Send for CustomOwner

Source§

impl Sync for CustomOwner