Function format [src]
To allow std.fmt.format to work with Managed.
If the absolute value of integer is greater than or equal to pow(2, 64 * @sizeOf(usize) * 8),
this function will fail to print the string, printing "(BigInt)" instead of a number.
This is because the rendering algorithm requires reversing a string, which requires O(N) memory.
See toString and toStringAlloc for a way to print big integers without failure.
Prototype
pub fn format( self: Managed, comptime fmt: []const u8, options: std.fmt.FormatOptions, out_stream: anytype, ) !void
Parameters
self: Managed
fmt: []const u8
options: std.fmt.FormatOptions
Source
pub fn format(
self: Managed,
comptime fmt: []const u8,
options: std.fmt.FormatOptions,
out_stream: anytype,
) !void {
return self.toConst().format(fmt, options, out_stream);
}