[−][src]Struct lexpr::print::DefaultFormatter
This structure compacts a S-expression value on a single line, using the default representation, which is similar to Scheme.
Trait Implementations
impl Formatter for DefaultFormatter
[src]
fn write_nil<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Writes a representation of the special nil value to the specified writer.
fn write_null<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Writes a representation of the special nil value to the specified writer.
fn write_bool<W: ?Sized>(&mut self, writer: &mut W, value: bool) -> Result<()> where
W: Write,
[src]
W: Write,
Writes a representation of a boolean value to the specified writer. Read more
fn write_number<W: ?Sized>(
&mut self,
writer: &mut W,
value: &Number
) -> Result<()> where
W: Write,
[src]
&mut self,
writer: &mut W,
value: &Number
) -> Result<()> where
W: Write,
Writes an integer value like -123
to the specified writer.
fn write_char<W: ?Sized>(&mut self, writer: &mut W, c: char) -> Result<()> where
W: Write,
[src]
W: Write,
Writes a charactor to the specified writer. Read more
fn begin_string<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Called before each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn end_string<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Called after each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn write_string_fragment<W: ?Sized>(
&mut self,
writer: &mut W,
fragment: &str
) -> Result<()> where
W: Write,
[src]
&mut self,
writer: &mut W,
fragment: &str
) -> Result<()> where
W: Write,
Writes a string fragment that doesn't need any escaping to the specified writer. Read more
fn write_char_escape<W: ?Sized>(
&mut self,
writer: &mut W,
char_escape: CharEscape
) -> Result<()> where
W: Write,
[src]
&mut self,
writer: &mut W,
char_escape: CharEscape
) -> Result<()> where
W: Write,
Writes a character escape code to the specified writer.
fn write_symbol<W: ?Sized>(&mut self, writer: &mut W, name: &str) -> Result<()> where
W: Write,
[src]
W: Write,
Writes a symbol to the specified writer.
fn write_keyword<W: ?Sized>(&mut self, writer: &mut W, name: &str) -> Result<()> where
W: Write,
[src]
W: Write,
Writes a keyword to the specified writer.
fn write_bytes<W: ?Sized>(&mut self, writer: &mut W, bytes: &[u8]) -> Result<()> where
W: Write,
[src]
W: Write,
Writes a byte vector to the specified writer.
fn begin_list<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Called before any list elements. Writes a (
to the specified writer. Read more
fn end_list<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Called after all list elements have been written. Writes a )
to the specified writer. Read more
fn begin_seq_element<W: ?Sized>(
&mut self,
writer: &mut W,
first: bool
) -> Result<()> where
W: Write,
[src]
&mut self,
writer: &mut W,
first: bool
) -> Result<()> where
W: Write,
Called before starting to write a list or vector element. Writes a space to the specified writer, if needed. Read more
fn end_seq_element<W: ?Sized>(&mut self, _writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Called after every list or vector element.
fn begin_vector<W: ?Sized>(
&mut self,
kind: VectorType,
writer: &mut W
) -> Result<()> where
W: Write,
[src]
&mut self,
kind: VectorType,
writer: &mut W
) -> Result<()> where
W: Write,
Called before any vector elements. Will write #(
for generic vectors, or #u8(
for byte vectors, to the specified writer. Read more
fn end_vector<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Called after all vector elements have been written. Writes a )
to the specified writer. Read more
fn write_dot<W: ?Sized>(&mut self, writer: &mut W) -> Result<()> where
W: Write,
[src]
W: Write,
Called before writing the tail of an improper list, or more generally, the cdr
field of a cons cell. Writes a .
to the specified writer. Read more
impl Clone for DefaultFormatter
[src]
fn clone(&self) -> DefaultFormatter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for DefaultFormatter
[src]
Auto Trait Implementations
impl Unpin for DefaultFormatter
impl Sync for DefaultFormatter
impl Send for DefaultFormatter
impl RefUnwindSafe for DefaultFormatter
impl UnwindSafe for DefaultFormatter
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,