[][src]Macro screenruster_saver::array

macro_rules! array {
    [  ] => { ... };
    [ $ ( $ item : expr ) , *
] => { ... };
}

Helper macro for creating instances of JsonValue::Array.

let data = array!["foo", 42, false];

assert_eq!(data[0], "foo");
assert_eq!(data[1], 42);
assert_eq!(data[2], false);

assert_eq!(data.dump(), r#"["foo",42,false]"#);