ParseIntError
pub enum ParseIntError = { Empty, InvalidDigit, Overflow }Variants
EmptyInvalidDigitOverflow
pub enum ParseIntError = { Empty, InvalidDigit, Overflow }EmptyInvalidDigitOverflowpub enum ParseFloatError = { Empty, Invalid, Overflow }EmptyInvalidOverflowfn rewrite_fmt(fmt: ref u8) ref void = trust { ... }Runtime rewrite of Spectre format specifiers to printf specifiers.
fn alloc_in[A: allocators.Allocator](ac: A, len: i64) ref voidfn alloc_cstr[A: allocators.Allocator](ac: A, len: i64) ref u8fn alloc_string[A: allocators.Allocator](ac: A, len: i64) Stringfn copy_cstr[A: allocators.Allocator](ac: A, src: ref u8) ref u8fn i64_to_string_heap(x: i64) ref u8 = trust { ... }pub fn format[A: allocators.Allocator](ac: A, fmt: ref u8, args: untyped) Stringpub fn i64_to_string[A: allocators.Allocator](ac: A, x: i64) ref u8extern (C) fn strlen(s: ref u8) i64 = trust { ... } = "strlen"pub fn string_to_i64(s: ref u8) result[i64, ParseIntError]pub fn f64_to_string[A: allocators.Allocator](ac: A, x: f64) ref u8pub fn string_to_f64(s: ref u8) result[f64, ParseFloatError]fn test_i64_roundtrip(x: i64) void = trust { ... }fn test_f64_roundtrip(x: f64) void = trust { ... }