Macro polymorphic_constant::polymorphic_constant [−][src]
Define one or more polymorphic numerical constants. A constant X of value 10, available in i32 and u32 will read:
polymorphic_constant! { static X: i32 | u32 = 10; }
and be used like:
let x_i32 = X.i32;