Crate enc

Crate enc 

Source
Expand description

§Data Encoding Features

  • data — Provides data encoding traits & utilities.
  • base-64 — Provides base-64 encoding.
  • hex — Provides hexadecimal encoding.
  • percent — Provides URL percent encoding.
  • full-data — Includes all the data encoding features.

§Value Encoding Features

  • value — Provides value encoding traits & utilities.
  • var-int — Provides variable-length integer encoding.
  • full-value — Includes all the value encoding features.

§Full

  • full — Includes all the data & value encoding features.

§Dev Features

  • test — Provides utilities for testing encoding implementations.

Modules§

base_64
hex
percent
test
var_int

Macros§

impl_encode_to_write_stack_buf
Implements the EncodeToWrite trait for the target_type.

Enums§

Error
An error processing encoded data.
StreamError
Either a data source error or a data encoding error.

Traits§

DecodeFromRead
A value that can decode itself from a Read.
DecodeFromReadPrefix
A value that can decode itself from a Read prefix.
Decoder
Responsible for decoding binary data.
EncodeToSlice
A value that can encode itself to a slice.
EncodeToWrite
A value that can encode itself to a Write.
EncodedLen
A value with an encoded length.
Encoder
Responsible for encoding binary data.
StringEncoder
Responsible for encoding binary data as UTF-8 encoded text.
Validator
Responsible for validating encoded data.

Functions§

read_optional_byte
Reads an optional byte from the Read.
read_single_byte
Reads a single byte from the Read.