Skip to main content

CustomOwner

Struct CustomOwner 

Source
#[doc(hidden)]
#[repr(transparent)]
pub struct CustomOwner(NonNull<Custom>);
🔬This is a nightly-only experimental API. (core_io_internals)

Tuple Fields§

§0: NonNull<Custom>
🔬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)
Source

fn custom_ref(&self) -> &Custom

🔬This is a nightly-only experimental API. (core_io #154046)
Source

fn custom_mut(&mut self) -> &mut Custom

🔬This is a nightly-only experimental API. (core_io #154046)

Trait Implementations§

Source§

impl Debug for CustomOwner

Source§

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

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 #130494)
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