pub fn enhanced_input<I, E>(
input: I,
) -> impl Iterator<Item = Result<u8, EnhancedInputError<E>>>Expand description
Wraps any valid input stream with a line-based preprocessor.
The following three modes for specifying input values are supported:
- By character: simply press a key (except
\or#) to enter its ascii value. - By escape code: type
\n,\r,\t,\\, or\#to enter a newline, return, tab, backslash, or octothorpe respectively. - By byte literal: type
#xyz, wherexyzis a three-digit, base-ten ascii code to enter the value ofxyz.