[−][src]Struct col_macros::DropBy
A wrapper that calls the given closure at Drop. Useful when you have a conditional assign of one that,once assigned,you want to warranty a call to it with the given T,and then drop it.
It derefs to T.
Fields
value: T
clos: F
Methods
impl<T, F> DropBy<T, F> where
F: FnMut(&mut T),
[src]
F: FnMut(&mut T),
Trait Implementations
impl<T, F> Deref for DropBy<T, F> where
F: FnMut(&mut T),
[src]
F: FnMut(&mut T),
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &<DropBy<T, F> as Deref>::Target
[src]
impl<T, F> DerefMut for DropBy<T, F> where
F: FnMut(&mut T),
[src]
F: FnMut(&mut T),
impl<T, F> Drop for DropBy<T, F> where
F: FnMut(&mut T),
[src]
F: FnMut(&mut T),
Auto Trait Implementations
impl<T, F> RefUnwindSafe for DropBy<T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for DropBy<T, F> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<T, F> Sync for DropBy<T, F> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<T, F> Unpin for DropBy<T, F> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,
impl<T, F> UnwindSafe for DropBy<T, F> where
F: UnwindSafe,
T: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
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>,