Skip to main content

take_until

Function take_until 

Source
fn take_until<'a>(s: &'a str, marker: &str) -> Option<(&'a str, &'a str)>
Expand description

Split s at the first occurrence of marker. Returns (before, after_marker) - the marker itself is consumed. None when the marker isn’t found.