pub fn format(a: IpAddress, w: *Io.Writer) Io.Writer.Error!void
See formatResolved for an alternative that additionally prints the optional scope at the end of IPv6 addresses and requires an Io parameter.
formatResolved
Io
a: IpAddress
w: *Io.Writer
181 182 183 184 185
pub fn format(a: IpAddress, w: *Io.Writer) Io.Writer.Error!void { switch (a) { inline .ip4, .ip6 => |x| return x.format(w), } }
See
formatResolvedfor an alternative that additionally prints the optional scope at the end of IPv6 addresses and requires anIoparameter.