Type Function Formatter [src]

Formats the given value using stringify.

Prototype

pub fn Formatter(comptime T: type) type

Parameters

T: type

Source

pub fn Formatter(comptime T: type) type { return struct { value: T, options: Stringify.Options, pub fn format(self: @This(), writer: *std.Io.Writer) std.Io.Writer.Error!void { try Stringify.value(self.value, self.options, writer); } }; }