[−][src]Struct into_inner_drop::IntoInnerHelper
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]
D: DetachedDrop<Implementor = T>,
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]
D: DetachedDrop<Implementor = T>,
Auto Trait Implementations
impl<T, D> Send for IntoInnerHelper<T, D> where
D: Send,
T: Send,
D: Send,
T: Send,
impl<T, D> Sync for IntoInnerHelper<T, D> where
D: Sync,
T: Sync,
D: Sync,
T: Sync,
impl<T, D> Unpin for IntoInnerHelper<T, D> where
D: Unpin,
T: Unpin,
D: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,