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>
where &'a [u8]: Compare<T> + FindSubstring<T>, T: InputLength + Clone + InputTake + InputIter,
Expand description

Matches the equivalent of regex: “\r\n{token}(:.*)?\r\n”