ToRon

Derive Macro ToRon 

Source
#[derive(ToRon)]
{
    // Attributes available to this derive:
    #[ron]
}
Expand description

Derive macro for serializing to RON without serde.

§Example

use ron2_derive::ToRon;
use ron2::ToRon;

#[derive(ToRon)]
struct Point {
    x: f32,
    y: f32,
}

let point = Point { x: 1.0, y: 2.0 };
let ron = point.to_ron().unwrap();