Module rusticata_macros::combinator[][src]

Expand description

General purpose combinators

Enums

Indicates which parser returned an error

Contains information on needed data if a parser returned Incomplete

Traits

This trait must be implemented by the error type of a nom parser.

Functions

Align input value to the next multiple of 4 bytes

Align input value to the next multiple of n bytes Valid only if n is a power of 2

Read the entire slice as a big endian unsigned integer, up to 8 bytes

Helper macro for nom parsers: run first parser if condition is true, else second parser

Return a closure that takes len bytes from input, and applies parser.

Take len bytes from input, and apply parser.

Read the entire slice as a little endian unsigned integer, up to 8 bytes

Creates an error from the input position and an ErrorKind

Read a slice as a big-endian value.

Create a combinator that returns the provided value, and input unchanged

Apply combinator, automatically converts between errors if the underlying type supports it

Type Definitions

Holds the result of parsing functions