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.