Function format [src]

Prototype

pub fn format( self: SyncScope, comptime prefix: []const u8, _: std.fmt.FormatOptions, writer: anytype, ) @TypeOf(writer).Error!void

Parameters

self: SyncScopeprefix: []const u8_: std.fmt.FormatOptions

Source

pub fn format( self: SyncScope, comptime prefix: []const u8, _: std.fmt.FormatOptions, writer: anytype, ) @TypeOf(writer).Error!void { if (self != .system) try writer.print( \\{s}syncscope("{s}") , .{ prefix, @tagName(self) }); }