fn reset(self: *Self, new_writer: WriterType) void

Reset discards the inner writer’s state and replace the inner writer with new_writer. new_writer must be of the same type as the previous writer.

Parameters

self: *Self,
new_writer: WriterType,