Expand description
Polyfill edge adapters for the 128-bit integer types
(u128/i128) — cranelift I128 under both signedness
interpretations (polydat/docs/design/type_system_alignment.md
§8.1).
Conventions mirror the 64-bit rows:
- Widenings from the 64-bit carriers are class A;
u64→i128is also A (every u64 fits). - Narrowings and cross-signedness casts are class B with range-check panics.
Bytesserdes are little-endian, exactly 16 bytes.- JSON projection is a decimal string in both directions (JSON Number is bounded by u64/i64/f64 leaves); the extractors also accept an in-range JSON Number for convenience at result-body boundaries.
→ f64mirrorsu64→f64’s class-A treatment (defined for every input; precision-lossy above 2^53 by the same rule).
Structs§
- Bool
ToI128 - The
__bool_to_i128node. - Bool
ToU128 - The
__bool_to_u128node. - Bytes
ToI128 - The
__bytes_to_i128node. - Bytes
ToU128 - The
__bytes_to_u128node. - F64To
I128 - The
__f64_to_i128node. - F64To
U128 - The
__f64_to_u128node. - I8To
I128 - The
__i8_to_i128node. - I16To
I128 - The
__i16_to_i128node. - I32To
I128 - The
__i32_to_i128node. - I64To
I128 - The
__i64_to_i128node. - I64To
U128 - The
__i64_to_u128node. - I128
ToBool - The
__i128_to_boolnode. - I128
ToBytes - The
__i128_to_bytesnode. - I128
ToF64 - The
__i128_to_f64node. - I128
ToI64 - The
__i128_to_i64node. - I128
ToJson - The
__i128_to_jsonnode. - I128
ToString - The
__i128_to_stringnode. - I128
ToU128 - The
__i128_to_u128node. - Json
ToI128 - The
__json_to_i128node. - Json
ToU128 - The
__json_to_u128node. - StrTo
I128 - The
__str_to_i128node. - StrTo
U128 - The
__str_to_u128node. - U8To
I128 - The
__u8_to_i128node. - U8To
U128 - The
__u8_to_u128node. - U16To
I128 - The
__u16_to_i128node. - U16To
U128 - The
__u16_to_u128node. - U32To
I128 - The
__u32_to_i128node. - U32To
U128 - The
__u32_to_u128node. - U64To
I128 - The
__u64_to_i128node. - U64To
U128 - The
__u64_to_u128node. - U128
ToBool - The
__u128_to_boolnode. - U128
ToBytes - The
__u128_to_bytesnode. - U128
ToF64 - The
__u128_to_f64node. - U128
ToI128 - The
__u128_to_i128node. - U128
ToJson - The
__u128_to_jsonnode. - U128
ToString - The
__u128_to_stringnode. - U128
ToU64 - The
__u128_to_u64node.