Crate enc

Source
Expand description
  • data — Enables the traits & utilities required for data oriented features.
  • value — Enables the traits & utilities required for value oriented features.
  • base-64 — Enables the handling of base-64 encoded data.
  • hex — Enables the handling of hexadecimal encoded data.
  • percent — Enables the handling of URL percent encoded data.
  • var-int — Enables the handling of variable-length encoded integers.
  • full-data — Activates all data oriented features.
  • full-value — Activates all value oriented features.
  • full — Activates all data & value oriented features.
  • test — Provides utilities for testing data & value encodings.

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 source error or an 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.