Function atat::digest::parser::urc_helper
source · pub fn urc_helper<'a, T, Error: ParseError<&'a [u8]>>(
token: T
) -> impl Fn(&'a [u8]) -> IResult<&'a [u8], (&'a [u8], usize), Error>
Expand description
Matches the equivalent of regex: “\r\n{token}(:.*)?\r\n”