pub fn parse_bigint_str(s: &str) -> Option<BigInt>
Parse a string to a BigInt under JS StringToBigInt rules: trimmed, empty → 0n, decimal or 0x/0o/0b prefixed; any junk → None.
StringToBigInt
0n
0x
0o
0b
None