partial_const
This library provides a way to handle constant and non-constant values in a unified way. This library takes both flexibilities to take dynamic values and (partial) parameter checking by the compiler.
Example
assert!;
assert!;
assert!;
assert!;
// assert!(maybe_one(partial_const::ConstI32::<2>::new())); <- Compile Error
License: MIT