struct Prefixed [src]

Fields

sync_scope: SyncScope
prefix: []const u8

Members

Source

pub const Prefixed = struct { sync_scope: SyncScope, prefix: []const u8, pub fn format(p: Prefixed, w: *Writer) Writer.Error!void { switch (p.sync_scope) { .system => return, .singlethread => { var vecs: [2][]const u8 = .{ p.prefix, "syncscope(\"singlethread\")" }; return w.writeVecAll(&vecs); }, } } }