Module syn_serde::json

source ·
Available on crate feature json only.
Expand description

A module to provide functions for JSON <-> Rust serialize and deserialize.

Functions

  • Deserialize an instance of Syn type from an I/O stream of JSON.
  • Deserialize an instance of Syn type from bytes of JSON text.
  • Deserialize an instance of Syn type from a string of JSON text.
  • Serialize the given Syn type as a String of JSON.
  • Serialize the given Syn type as a pretty-printed String of JSON.
  • Serialize the given Syn type as a JSON byte vector.
  • Serialize the given Syn type as a pretty-printed JSON byte vector.
  • Serialize the given Syn type as JSON into the I/O stream.
  • Serialize the given Syn type as pretty-printed JSON into the IO stream.