macro_rules! sqlu256 {
($val:literal) => { ... };
}
Expand description
Macro to create a SqlU256 from a literal (compile-time check for negative, only usable in runtime context).
Usage:
let a: SqlU256 = sqlu256!(100); // OK
let b: SqlU256 = sqlu256!(-100); // Compile error
// const A: SqlU256 = sqlu256!(100); // ❌ Not supported: From<u128>
is not const