ron 0.6.1

Rusty Object Notation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use ron::ser::{to_string_pretty, PrettyConfig};

#[test]
fn small_array() {
    let arr = &[(), (), ()][..];
    assert_eq!(
        to_string_pretty(&arr, PrettyConfig::new().with_new_line("\n".to_string())).unwrap(),
        "[
    (),
    (),
    (),
]"
    );
}