Module async_codec_util::decoder [] [src]

Utilities for working with decores.

Structs

AndThen

Run a decoder and use the produced item to construct the next decoder to run.

Chain

Chain two decoders, running them in sequence.

DecodeExact

Wraps a decoder and emits an error if it does not stop encoding at exactly the specified byte count.

Map

Change the return type of a decoder by mapping its item through a function.

Enums

DecodeExactError

The error of a DecodeExact.

Functions

chain

Create new Chain which first decodes via the given S and then decodes via the given T.

map

Chain a compution on the result of a decoder.