Module ser

Source
Expand description

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.
quote_str
Serializes and escapes a &str into a Hjson string.
to_string
Encode the specified struct into a Hjson String buffer.
to_string_raw
Encode the specified struct into a Hjson String buffer. And remove all whitespace
to_string_with_indent
Encode the specified struct into a Hjson String buffer.
to_string_with_tab_indentation
Encode the specified struct into a Hjson String buffer.
to_vec
Encode the specified struct into a Hjson [u8] buffer.
to_vec_with_indent
Encode the specified struct into a Hjson [u8] buffer.
to_vec_with_tab_indentation
Encode the specified struct into a Hjson [u8] buffer.
to_writer
Encode the specified struct into a Hjson [u8] writer.
to_writer_with_indent
Encode the specified struct into a Hjson [u8] writer.
to_writer_with_tab_indentation
Encode the specified struct into a Hjson [u8] writer.