Function ident [src]
Serialize name as an identifier prefixed with ..
Escapes the identifier if necessary.
Prototype
pub fn ident(self: *Serializer, name: []const u8) Error!void
Parameters
self: *Serializer
name: []const u8
Possible Errors
Source
pub fn ident(self: *Serializer, name: []const u8) Error!void {
try self.writer.print(".{f}", .{std.zig.fmtIdPU(name)});
}