Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

ToJson

Trait ToJson 

pub trait ToJson {
    // Required method
    fn to_json<T>(&self, txn: &T) -> Any
       where T: ReadTxn;
}

Required Methods§

fn to_json<T>(&self, txn: &T) -> Any
where T: ReadTxn,

Converts all contents of a current type into a JSON-like representation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl ToJson for Out

§

impl ToJson for ArrayRef

§

impl ToJson for Doc

§

impl ToJson for MapRef

§

impl ToJson for XmlHookRef