Crate run_on_drop

Source
Expand description

This crate provides a closure wrapper that will run the closure when it is dropped.

See on_drop for examples.

Structs§

OnDrop
A type that runs the contained closure when it is dropped.

Functions§

on_drop
Creates an object that will run the closure when it is dropped.