Function scan_rules::scanner::runtime::max_width
[−]
[src]
pub fn max_width<Then>(width: usize, then: Then) -> MaxWidth<Then>
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.