miden-rowan 0.16.3

Library for generic lossless syntax trees
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::marker::PhantomData;

#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub(crate) struct Count<T: 'static> {
    marker: PhantomData<fn(T)>,
}

impl<T: 'static> Count<T> {
    #[inline]
    pub(crate) const fn new() -> Self {
        Self { marker: PhantomData }
    }
}