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: *Serializername: []const u8

Possible Errors

WriteFailed Error

See the Writer implementation for detailed diagnostics.

Source

pub fn ident(self: *Serializer, name: []const u8) Error!void { try self.writer.print(".{f}", .{std.zig.fmtIdPU(name)}); }