pub struct CompactSerializeStyle { /* private fields */ }
Expand description

Compact style that only inserts spaces between list elements.

Example

use sise::sise_expr;

let tree = sise_expr!(["example", ["1", "2", "3"], ["a", "b", "c"]]);

let compact = sise::serialize(&tree, &mut sise::CompactSerializeStyle::new());
assert_eq!(compact, "(example (1 2 3) (a b c))");

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more
Called at the beginning of the serialization (nothing has been writen to output yet). Read more
Called at the beginning of a list (before writing ( to output)
Called at the end of a list (before writing ) to output)
Called before writing an atom to output.
Called at the end of the serialization (nothing more will be writen to output). Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.