[][src]Struct lexpr::print::Options

pub struct Options { /* fields omitted */ }

Options for printing S-expressions.

Methods

impl Options[src]

pub fn elisp() -> Self[src]

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.

pub fn with_keyword_syntax(self, syntax: KeywordSyntax) -> Self[src]

Set the syntax to use for printing keywords.

pub fn with_nil_syntax(self, syntax: NilSyntax) -> Self[src]

Set the syntax to use to print the special nil value.

pub fn with_bool_syntax(self, syntax: BoolSyntax) -> Self[src]

Set the syntax to use to print boolean values.

pub fn with_vector_syntax(self, syntax: VectorSyntax) -> Self[src]

Set the syntax for printing vectors.

pub fn with_bytes_syntax(self, syntax: BytesSyntax) -> Self[src]

Set the syntax to use for printing byte vectors.

pub fn with_string_syntax(self, syntax: StringSyntax) -> Self[src]

Set the syntax used for printing strings.

pub fn with_char_syntax(self, syntax: CharSyntax) -> Self[src]

Set the syntax used for printing characters.

Trait Implementations

impl Clone for Options[src]

impl Copy for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.