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
- How to print boolean values.
- How to print byte vectors.
- Represents a character escape code in a type-safe manner.
- Indicates the syntax for characters.
- Indicates a syntax of keywords.
- How to print the special nil value.
- Indicates the syntax for strings.
- How to print vectors.
- Different vector types
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.