exhaust 0.2.1

Trait and derive macro for working with all possible values of a type (exhaustive enumeration).
Documentation
1
2
3
4
5
use crate::patterns::impl_newtype_generic;

impl_newtype_generic!(T: [], core::cell::Cell<T>, core::cell::Cell::new);
impl_newtype_generic!(T: [], core::cell::RefCell<T>, core::cell::RefCell::new);
impl_newtype_generic!(T: [], core::cell::UnsafeCell<T>, core::cell::UnsafeCell::new);