Struct scan_rules::scanner::runtime::ExactWidth
[−]
[src]
pub struct ExactWidth<Then>(_, _);
Runtime scanner that forces exactly width
bytes to be consumed.
See: exact_width
, exact_width_a
.
Trait Implementations
impl<'a, Then> ScanStr<'a> for ExactWidth<Then> where
Then: ScanStr<'a>,
[src]
Then: ScanStr<'a>,
type Output = Then::Output
The type that the implementation scans into.
fn scan<I: ScanInput<'a>>(
&mut self,
s: I
) -> Result<(Self::Output, usize), ScanError>
&mut self,
s: I
) -> Result<(Self::Output, usize), ScanError>
Perform a scan on the given input. Read more
fn wants_leading_junk_stripped(&self) -> bool
Indicates whether or not the scanner wants its input to have leading "junk", such as whitespace, stripped. Read more