Function max_width

Source
pub fn max_width<Then>(width: usize, then: Then) -> MaxWidth<Then>
Expand description

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

This is done by truncating the input provided to the inner scanner to at most width bytes.

See: max_width_a.