singlethreadsystempub fn format( self: SyncScope, comptime prefix: []const u8, _: std.fmt.FormatOptions, writer: anytype, ) @TypeOf(writer).Error!voidpub 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) });
}pub const SyncScope = enum(u1) {
singlethread,
system,
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) });
}
}