nice-catch

Crates.ionice-catch
lib.rsnice-catch
version0.1.0
created_at2025-08-18 19:03:11.950744+00
updated_at2025-08-18 19:03:11.950744+00
descriptionCatch your data just before you drop it
homepagehttps://github.com/rambles-app/nice-catch
repositoryhttps://github.com/rambles-app/nice-catch
max_upload_size
id1800901
size20,247
finch (plaidfinch)

documentation

https://docs.rs/nice-catch

README

nice-catch

A 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.

Commit count: 0

cargo fmt