This PR changes the generic params around so that the maximum amount of compile-time checks can be made, while offering some flexibility with TimestampPolicy. It also adds some const fns in the utils.rs instead of macros.
The only things that can't be checked at compile time are the ID Length and the TimestampPolicy, which still get validated at runtime but might result in an error when creating IDs
This PR changes the generic params around so that the maximum amount of compile-time checks can be made, while offering some flexibility with TimestampPolicy. It also adds some const fns in the
utils.rs
instead of macros.The only things that can't be checked at compile time are the ID Length and the TimestampPolicy, which still get validated at runtime but might result in an error when creating IDs
Fixes #9