1 | pub(crate) struct CleanupEnvHookData<T: 'static> { |
---|---|
2 | pub(crate) data: T, |
3 | pub(crate) hook: Box<dyn FnOnce(T)>, |
4 | } |
5 | |
6 | /// Created by `Env::add_env_cleanup_hook` |
7 | /// And used by `Env::remove_env_cleanup_hook` |
8 | #[derive(Clone, Copy)] |
9 | pub struct CleanupEnvHook<T: 'static>(pub(crate) *mut CleanupEnvHookData<T>); |
10 |