Function format [src]
Prototype
pub fn format( self: ExternallyInitialized, comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype, ) @TypeOf(writer).Error!void
Parameters
self: ExternallyInitialized
_: []const u8
_: std.fmt.FormatOptions
Source
pub fn format(
self: ExternallyInitialized,
comptime _: []const u8,
_: std.fmt.FormatOptions,
writer: anytype,
) @TypeOf(writer).Error!void {
if (self == .default) return;
try writer.writeByte(' ');
try writer.writeAll(@tagName(self));
}