Crate rlp [] [src]

Recursive Length Prefix serialization crate.

Allows encoding, decoding, and view onto rlp-slice

What should you use when?

Use encode function when:

Use decode function when:

Use RlpStream when:

Use Rlp when:

Use UntrustedRlp when:

Reexports

pub use self::rlptraits::{Decoder, Decodable, View, Stream, Encodable, Encoder, RlpEncodable, RlpDecodable, Compressible};

Modules

rlptraits

Common RLP traits

Structs

PayloadInfo

Stores basic information about item

Rlp

Data-oriented view onto trusted rlp-slice.

RlpIterator

Iterator over trusted rlp-slice list elements.

RlpStream

Appendable rlp encoder.

UntrustedRlp

Data-oriented view onto rlp-slice.

UntrustedRlpIterator

Iterator over rlp-slice list elements.

Enums

DecoderError

Error concerning the RLP decoder.

Prototype

RLP prototype

RlpType

Type of RLP indicating its origin database.

Constants

EMPTY_LIST_RLP

The RLP encoded empty list.

NULL_RLP

The RLP encoded empty data (used to mean "null value").

Functions

decode

Shortcut function to decode trusted rlp

encode

Shortcut function to encode structure into rlp.