Crate nlsd[][src]

Expand description

A Natural Language Structured Document serde implementation. The main entrypoints are the from_str and to_string methods which take deserializable and serializable objects respectively and converts the from and to English. See the README for more information on the specifications.

Structs

Deserializer

A structure that deserializes NLSD into Rust structures

Serializer

A structure that serializes Rust values into a writer W

Enums

Error

Error that may occur during serializing or deserializing

Functions

from_slice

deserialize an instance of T from NLSD bytes

from_str

deserialize an instance of T from NLSD text

to_string

serialize an instance of T to a string

to_vec

serialize an instance of T to bytes

to_writer

serialize an instance of T to a writer

Type Definitions

Result

Convenience wrapper for a Result<T, Error>