take_while

Function take_while 

Source
pub fn take_while<P>(s: &str, predicate: P) -> &str
where P: FnMut(char) -> bool,