fn escaped_field_separator(input: &str) -> IResult<&str, u8> {
    alt((
        value(b'\n', tag("\\n")),
        value(b'\t', tag("\\t")),
        value(b'\r', tag("\\r")),
        value(b' ', tag("\\s")),
    ))(input)
}
/// escaped_separator handles getting escaped characters from a user-input separator string.
/// It will treat "\\n", "\\t", "\\r", and "\\s" as the literal characters '\n', '\t', '\r', and ' '.
escaped_separator handles getting escaped characters from a user-input separator string.
escaped_separator handles getting escaped characters from a user - input separator string .
fn escaped_field_separator(input: &str) -> IResult<&str, u8> {
    alt((
        value(b'\n', tag("\\n")),
        value(b'\t', tag("\\t")),
        value(b'\r', tag("\\r")),
        value(b' ', tag("\\s")),
    ))(input)
}
fn escaped_field_separator ( input : & str ) -> IResult < & str , u8 > { alt ( ( value ( b'\n' , tag ( " \\ " ) ) , value ( b'\t' , tag ( " \\ " ) ) , value ( b'\r' , tag ( " \\ " ) ) , value ( b' ' , tag ( " \\ " ) ) , ) ) ( input ) }
escaped_separator handles getting escaped characters from a user-input separator string.
escaped_separator handles getting escaped characters from a user - input separator string .
input
&str