Function format [src]
Prototype
pub fn format(p: Prefixed, w: *Writer) Writer.Error!void
Parameters
p: Prefixed
w: *Writer
Source
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);
},
}
}