Module lexpr::print

source ·
Expand description

Converting S-expression values into text.

Terminology

The process of serializing S-expressions to their textual representation is referred to “writing” in Lisp. To avoid confusion with Rust’s Write trait, lexpr uses “printing” instead.

Structs

  • A formatter which can be tuned with regards to S-expressions representation.
  • This structure compacts a S-expression value on a single line, using the default representation, which is similar to Scheme.
  • Options for printing S-expressions.
  • A printer for S-expression values.

Enums

Traits

  • This trait abstracts away serializing the S-expression pieces, which allows the implementer to optionally pretty print the S-expression output, as well as to allow customizing the printing for various S-expression “dialects”.

Functions

  • Serialize the given value an S-expression string, using the default printer options.
  • Serialize the given value an S-expression string.
  • Serialize the given value as byte vector containing S-expression text, using the default printer options.
  • Serialize the given value as byte vector containing S-expression text.
  • Serialize the given value value as S-expression text into the IO stream, using the default printer options.
  • Serialize the given value value as S-expression text into the IO stream.