Function format [src]

Prototype

pub fn format(p: Prefixed, w: *Writer) Writer.Error!void

Parameters

p: Prefixedw: *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); }, } }