pub fn format(id: BuildId, writer: *Writer) Writer.Error!void
id: BuildId
writer: *Writer
356 357 358 359 360 361 362 363 364 365
pub fn format(id: BuildId, writer: *Writer) Writer.Error!void { switch (id) { .none, .fast, .uuid, .sha1, .md5 => { try writer.writeAll(@tagName(id)); }, .hexstring => |hs| { try writer.print("0x{x}", .{hs.toSlice()}); }, } }