Skip to main content

new_split_cache

Function new_split_cache 

Source
pub fn new_split_cache(s: &str, delimiter: char) -> Split<'_, char> 
Expand description

Create a new split cache for consistent API

This function creates a split iterator that can be used consistently across different optimization levels.

§Arguments

  • s - The string to split
  • delimiter - The character to split on

§Returns

A split iterator over the string