Hi,
I'm trying to use your library as its API is exactly what I'm looking for, and have a simple question.
use bounded_types::BoundedU64;
pub mod s {
pub const a: u64 = 100;
pub const b: u64 = 200;
}
// fn hello(c: BoundedU64<{ s::a }, { s::b }>) {} // Working
fn hello(c: BoundedU64<s::a, s::b>) {} // Not working
fn main() {}
it seems that variables in mod could not be used right away without brace so that it's a bit more verbose. Is there any way to work around it?
Hi,
I'm trying to use your library as its API is exactly what I'm looking for, and have a simple question.
it seems that variables in
modcould not be used right away without brace so that it's a bit more verbose. Is there any way to work around it?