Mojo module
write
Establishes the contract between Writer
and Writable
types.
Traits
-
MovableWriter
: Allows moving a Writer into a buffer. -
Writable
: TheWritable
trait describes how a type is written into aWriter
. -
Writer
: Describes a type that can be written to by any type that implements thewrite_to
function.
Functions
-
write_args
: Add seperators and end characters when writing variadics into aWriter
. -
write_buffered
: Use a buffer on the stack to minimize expensive calls to the writer. When the buffer would overflow it writes to thewriter
passed in. You can also add seperators between the args, and end characters.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!