pub struct Options { /* private fields */ }Expand description
Options for printing S-expressions.
Implementations§
Source§impl Options
impl Options
Sourcepub fn elisp() -> Options
pub fn elisp() -> Options
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) -> Options
pub fn with_keyword_syntax(self, syntax: KeywordSyntax) -> Options
Set the syntax to use for printing keywords.
Sourcepub fn with_nil_syntax(self, syntax: NilSyntax) -> Options
pub fn with_nil_syntax(self, syntax: NilSyntax) -> Options
Set the syntax to use to print the special nil value.
Sourcepub fn with_bool_syntax(self, syntax: BoolSyntax) -> Options
pub fn with_bool_syntax(self, syntax: BoolSyntax) -> Options
Set the syntax to use to print boolean values.
Sourcepub fn with_vector_syntax(self, syntax: VectorSyntax) -> Options
pub fn with_vector_syntax(self, syntax: VectorSyntax) -> Options
Set the syntax for printing vectors.
Sourcepub fn with_bytes_syntax(self, syntax: BytesSyntax) -> Options
pub fn with_bytes_syntax(self, syntax: BytesSyntax) -> Options
Set the syntax to use for printing byte vectors.
Sourcepub fn with_string_syntax(self, syntax: StringSyntax) -> Options
pub fn with_string_syntax(self, syntax: StringSyntax) -> Options
Set the syntax used for printing strings.
Sourcepub fn with_char_syntax(self, syntax: CharSyntax) -> Options
pub fn with_char_syntax(self, syntax: CharSyntax) -> Options
Set the syntax used for printing characters.
Trait Implementations§
impl Copy for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more