enhanced_input

Function enhanced_input 

Source
pub fn enhanced_input<I, E>(
    input: I,
) -> impl Iterator<Item = Result<u8, EnhancedInputError<E>>>
where I: IntoIterator<Item = Result<u8, E>>,
Expand description

Wraps any valid input stream with a line-based preprocessor.

The following three modes for specifying input values are supported:

  1. By character: simply press a key (except \ or #) to enter its ascii value.
  2. By escape code: type \n, \r, \t, \\, or \# to enter a newline, return, tab, backslash, or octothorpe respectively.
  3. By byte literal: type #xyz, where xyz is a three-digit, base-ten ascii code to enter the value of xyz.