Skip to main content
Log in

Mojo module

write

Establishes the contract between Writer and Writable types.

Traits

  • MovableWriter: Allows moving a Writer into a buffer.
  • Writable: The Writable trait describes how a type is written into a Writer.
  • Writer: Describes a type that can be written to by any type that implements the write_to function.

Functions

  • write_args: Add seperators and end characters when writing variadics into a Writer.
  • write_buffered: Use a buffer on the stack to minimize expensive calls to the writer. When the buffer would overflow it writes to the writer passed in. You can also add seperators between the args, and end characters.