Trait nu_json::value::ToJson

source ·
pub trait ToJson {
    // Required method
    fn to_json(&self) -> Value;
}
Expand description

A trait for converting values to Hjson

Required Methods§

source

fn to_json(&self) -> Value

Converts the value of self to an instance of Hjson

Implementors§

source§

impl<T> ToJson for Twhere T: Serialize + ?Sized,