Module scan_rules::scanner::runtime [] [src]

Types and constructors for various runtime scanners.

Structs

ExactWidth

Runtime scanner that forces exactly width bytes to be consumed.

MaxWidth

Runtime scanner that forces at most width bytes to be consumed.

MinWidth

Runtime scanner that forces at least width bytes to be consumed.

ScanA

Runtime scanner that delegates to a static scanner.

ScanRegex

Runtime scanner that slices the input based on a regular expression.

Functions

exact_width

Creates a runtime scanner that forces exactly width bytes to be consumed.

exact_width_a

Creates a runtime scanner that forces exactly width bytes to be consumed by the static scanner S.

max_width

Creates a runtime scanner that forces at most width bytes to be consumed.

max_width_a

Creates a runtime scanner that forces at most width bytes to be consumed by the static scanner S.

min_width

Creates a runtime scanner that forces at least width bytes to be consumed.

min_width_a

Creates a runtime scanner that forces at least width bytes to be consumed by the static scanner S.

re

Creates a runtime scanner that extracts a slice of the input using a regular expression, then scans the result using Then.

re_a

Creates a runtime regex scanner that passes the matched input to a static scanner S.

re_str

Creates a runtime regex scanner that yields the matched input as a string slice.

scan_a

Returns a runtime scanner that delegates to a static scanner.