| Crates.io | nice-catch |
| lib.rs | nice-catch |
| version | 0.1.0 |
| created_at | 2025-08-18 19:03:11.950744+00 |
| updated_at | 2025-08-18 19:03:11.950744+00 |
| description | Catch your data just before you drop it |
| homepage | https://github.com/rambles-app/nice-catch |
| repository | https://github.com/rambles-app/nice-catch |
| max_upload_size | |
| id | 1800901 |
| size | 20,247 |
nice-catchA Catch<T> is a Deref/DerefMut wrapper around a T and a F: FnOnce(T) which calls the
function on T in place of drop.
This trick allows you to provide an owned static value with no indirection or locking to a caller that needs one, then recover the value externally after the caller returns.