const_struct 0.6.6

macro that allows const structures to be passed as const generics
Documentation
1
2
3
4
5
6
7
8
9
10
pub trait KeepTypeConst<const N: usize> {
    type DATATYPE;
    const N: Self::DATATYPE;
}

pub trait KeepType<const N: usize> {
    type Type;
}

pub struct Marker<const N: usize>;