io
ToDelimited

ToDelimited

Mojo trait 🡭

ToDelimited

Aliases

  • __del__is_trivial = : A flag (often compiler generated) to indicate whether the implementation of __del__ is trivial. The implementation of __del__ is considered to be trivial if:
  • The struct has a compiler-generated trivial destructor and all its fields have a trivial __del__ method.

In practice, it means that the __del__ can be considered as no-op.

Implemented traits

AnyType, UnknownDestructibility

Methods

 

write_to_delimited

fn write_to_delimited(self: _Self, mut writer: DelimWriter[W])

Write self to the passed in writer. This should probably be done with DelimWriter.write_record or a series of DelimWriter.write_field calls.

Args:

  • self (_Self)
  • writer (DelimWriter)

Raises:

write_header

fn write_header(self: _Self, mut writer: DelimWriter[W])

Write selfs headers to the passed in writer. This should probably be done with DelimWriter.write_record or a series of DelimWriter.write_field calls.

Args:

  • self (_Self)
  • writer (DelimWriter)

Raises: