Function write [src]
Prototype
pub fn write(self: Method, w: anytype) !void
Parameters
self: Method
Source
pub fn write(self: Method, w: anytype) !void {
const bytes = std.mem.asBytes(&@intFromEnum(self));
const str = std.mem.sliceTo(bytes, 0);
try w.writeAll(str);
}