Module handy_io::pattern::combinators [] [src]

Patterns to combinate other patterns.

Structs

AndThen

A pattern for the and_then combinator, chaining a pattern on the end of another pattern which evaluated successfully.

BE

A pattern to indicates that "T is a big endian value".

Chain

A pattern for the chain combinator, chaining values of the two pattern P0 and P1 as a tuple value.

IterFold

A pattern for the fold combinator, folding values of the patterns contained in a iterator to produce final value.

LE

A pattern to indicates that "T is a little endian value".

Map

A pattern for the map combinator, mapping a value of a pattern to another value.

OrElse

A pattern for the or_else combinator, chaining a pattern on the end of another pattern which evaluation fails with an error.

PartialBuf

A pattern to indicates that "B is a partially evaluable buffer".

Repeat

A pattern which represents infinite stream of P.

Then

A pattern for the then combinator, chaining a pattern on the end of another pattern regardless of its evaluation result.