[−][src]Struct lexpr::print::Options
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,