Function format [src]
Prototype
pub fn format(self: SelfType, w: *Writer) Error!void Parameters
self: SelfTypew: *Writer Possible Errors
See the Writer implementation for detailed diagnostics.
Source
pub fn format(self: SelfType, w: *Writer) Error!void {
return w.print("({d:.3},{d:.3})", .{ self.x, self.y });
}