[][src]Struct into_inner_drop::IntoInnerHelper

pub struct IntoInnerHelper<T, D> where
    D: DetachedDrop<Implementor = T>, 
{ /* fields omitted */ }

The helper which allows you to implement Drop for your type while still allowing to take it apart by moving out.

Methods

impl<T, D> IntoInnerHelper<T, D> where
    D: DetachedDrop<Implementor = T>, 
[src]

pub fn new(inner: T) -> Self[src]

Creates the helper.

pub fn inner(&self) -> &T[src]

Accesses the inner value.

pub fn inner_mut(&mut self) -> &mut T[src]

Accesses the inner value mutably.

pub fn into_inner(self) -> T[src]

Moves out the inner value.

Trait Implementations

impl<T, D> Drop for IntoInnerHelper<T, D> where
    D: DetachedDrop<Implementor = T>, 
[src]

Auto Trait Implementations

impl<T, D> Send for IntoInnerHelper<T, D> where
    D: Send,
    T: Send

impl<T, D> Sync for IntoInnerHelper<T, D> where
    D: Sync,
    T: Sync

impl<T, D> Unpin for IntoInnerHelper<T, D> where
    D: Unpin,
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.