Crate serde_encom

Source

Macros§

encom_from_json
Construct a serde_encom::Value from an EnCom literal.

Structs§

Deserializer
A structure that deserializes EnCom into Rust values.
Error
This type represents all possible errors that can occur when serializing or deserializing EnCom data.
InitDeserializer
IoRead
EnCom input source that reads from a std::io input stream.
Map
Represents an EnCom key/value type.
Number
Represents an EnCom number, whether integer or floating point.
Serializer
Serializer whose output is a Value.
SliceRead
EnCom input source that reads from a slice of bytes.
StrRead
EnCom input source that reads from a UTF-8 string.

Enums§

Entry
A view into a single entry in a map, which may either be vacant or occupied. This enum is constructed from the entry method on Map.
ErrorCategory
Categorizes the cause of a serde_encom::Error.
Value
Represents any valid EnCom value.

Traits§

Index
A type that can be used to index into a serde_encom::Value.
Read
Trait used by the deserializer for iterating over input. This is manually “specialized” for iterating over &u8. Once feature(specialization) is stable we can use actual specialization.

Functions§

from_readerstd
Deserialize an instance of type T from an IO stream of EnCom.
from_slice
Deserialize an instance of type T from bytes of EnCom text.
from_str
Deserialize an instance of type T from a string of EnCom text.
from_value
Interpret a serde_encom::Value as an instance of type T.
to_string
Serialize the given data structure as a String of EnCom.
to_string_pretty
Serialize the given data structure as a pretty-printed String of EnCom.
to_value
Convert a T into serde_encom::Value which is an enum that can represent any valid EnCom data.
to_vec
Serialize the given data structure as an EnCom byte vector.
to_vec_pretty
Serialize the given data structure as a pretty-printed EnCom byte vector.
to_writerstd
Serialize the given data structure as EnCom into the IO stream.
to_writer_prettystd
Serialize the given data structure as pretty-printed EnCom into the IO stream.

Type Aliases§

Result
Alias for a Result with the error type serde_encom::Error.