tabnas-alchemy 0.2.3

The alchemy grammar plugin and language for the tabnas parsing engine (declarative streaming transducers and renderers), and the types tabnas transducers and renderers share.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The JSON profile: the options render's `JsonRenderer` takes, which
//! alchemy hands to [`Renderers::json`](crate::shared::Renderers::json).

/// The JSON profile.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct JsonOptions {
    /// Spaces per nesting level, with a newline before every item and
    /// every closing bracket of a non-empty container. `None` or `Some(0)`
    /// is compact: no whitespace at all.
    pub indent: Option<usize>,
    /// Write a newline after the root value, at `End`.
    pub trailing_newline: bool,
}