Module serde_hjson::ser [] [src]

Hjson Serialization

This module provides for Hjson serialization with the type Serializer.

Structs

Serializer

A structure for serializing Rust values into Hjson.

Traits

Formatter

This trait abstracts away serializing the JSON control characters

Functions

escape_bytes

Serializes and escapes a &[u8] into a Hjson string.

escape_key

Serializes and escapes a &str into a Hjson key.

ml_str

Serializes and escapes a &str into a multiline Hjson string.

quote_str

Serializes and escapes a &str into a Hjson string.

to_string

Encode the specified struct into a Hjson String buffer.

to_vec

Encode the specified struct into a Hjson [u8] buffer.

to_writer

Encode the specified struct into a Hjson [u8] writer.