Trait nanoserde::SerRon[][src]

pub trait SerRon {
    fn ser_ron(&self, indent_level: usize, state: &mut SerRonState);

    fn serialize_ron(&self) -> String { ... }
}
Expand description

A trait for objects that can be serialized to the RON file format.

Specification.

Required methods

Serialize Self to a RON string.

let mut s = SerRonState { out: String::new() };
42u32.ser_ron(0, &mut s);
assert_eq!(s.out, "42");

Provided methods

Serialize Self to a RON string.

This is a convenient wrapper around ser_json.

Implementations on Foreign Types

Implementors