[−][src]Struct drop_move::DropGuard
Run a FnOnce
function on drop.
Implementations
impl<F: FnOnce()> DropGuard<F>
[src]
pub fn new(f: F) -> Self
[src]
Construct from a FnOnce
function.
pub fn into_inner(self) -> F
[src]
Extract the function.
Trait Implementations
impl<F: Clone + FnOnce()> Clone for DropGuard<F>
[src]
pub fn clone(&self) -> DropGuard<F>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: FnOnce()> Deref for DropGuard<F>
[src]
impl<F: FnOnce()> DerefMut for DropGuard<F>
[src]
impl<F: FnOnce()> From<F> for DropGuard<F>
[src]
Auto Trait Implementations
impl<F> Send for DropGuard<F> where
F: Send,
[src]
F: Send,
impl<F> Sync for DropGuard<F> where
F: Sync,
[src]
F: Sync,
impl<F> Unpin for DropGuard<F> where
F: Unpin,
[src]
F: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for 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.
pub 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>,