Struct scan_rules::scanner::runtime::MinWidth [] [src]

pub struct MinWidth<Then>(_, _);

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

See: min_width, min_width_a.

Trait Implementations

impl<'a, Then> ScanStr<'a> for MinWidth<Then> where Then: ScanStr<'a>
[src]

type Output = Then::Output

The type that the implementation scans into.

fn scan(&mut self, s: &'a str) -> Result<(Self::Output, usize)ScanErrorKind>

Perform a scan on the given input. Read more