exhaust 0.2.3

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

use crate::patterns::impl_singleton;

impl_singleton!([T], marker::PhantomData<T>);
impl_singleton!([], marker::PhantomPinned);