pub struct Options { /* private fields */ }
Expand description
Options for printing S-expressions.
Implementations§
source§impl Options
impl Options
sourcepub fn elisp() -> Self
pub fn elisp() -> Self
Construct parser options suitable for printing Emacs Lisp.
Keywords will use prefix notation (i.e. :some-keyword
), the
special nil value will be represented as a symbol, and
booleans will be represented by nil
and t
.
sourcepub fn with_keyword_syntax(self, syntax: KeywordSyntax) -> Self
pub fn with_keyword_syntax(self, syntax: KeywordSyntax) -> Self
Set the syntax to use for printing keywords.
sourcepub fn with_nil_syntax(self, syntax: NilSyntax) -> Self
pub fn with_nil_syntax(self, syntax: NilSyntax) -> Self
Set the syntax to use to print the special nil value.
sourcepub fn with_bool_syntax(self, syntax: BoolSyntax) -> Self
pub fn with_bool_syntax(self, syntax: BoolSyntax) -> Self
Set the syntax to use to print boolean values.
sourcepub fn with_vector_syntax(self, syntax: VectorSyntax) -> Self
pub fn with_vector_syntax(self, syntax: VectorSyntax) -> Self
Set the syntax for printing vectors.
sourcepub fn with_bytes_syntax(self, syntax: BytesSyntax) -> Self
pub fn with_bytes_syntax(self, syntax: BytesSyntax) -> Self
Set the syntax to use for printing byte vectors.
sourcepub fn with_string_syntax(self, syntax: StringSyntax) -> Self
pub fn with_string_syntax(self, syntax: StringSyntax) -> Self
Set the syntax used for printing strings.
sourcepub fn with_char_syntax(self, syntax: CharSyntax) -> Self
pub fn with_char_syntax(self, syntax: CharSyntax) -> Self
Set the syntax used for printing characters.