pub fn consume_while<'s>( input: &mut &'s str, predicate: impl FnMut(&char) -> bool, ) -> &'s str
Consume a prefix of input while the predicate returns true, returning that slice.
input