Assumes that if the printed data ends with a newline, it is directly contained in the format string.
Function parameters
Parameters
- ais:*AutoIndentingStream
- format:[]const u8
- args:anytype
Type definitions in this namespace
Types
Functions in this namespace
Functions
Error sets in this namespace
Error Sets
Source
Implementation
pub fn print(ais: *AutoIndentingStream, comptime format: []const u8, args: anytype) Error!void {
try ais.applyIndent();
if (ais.disabled_offset == null) try ais.underlying_writer.print(format, args);
if (format[format.len - 1] == '\n') ais.resetLine();
}