Trait split_every::SplitEveryImpl

source ·
pub trait SplitEveryImpl: AsRef<str> {
    // Provided methods
    fn split_every_n_of_str<'a>(
        &'a self,
        pat: &'a str,
        n: usize,
    ) -> SplitEvery<'a>  { ... }
    fn split_every_n_of_char(&self, pat: char, n: usize) -> SplitEvery<'_>  { ... }
}
Expand description

A trait containing all string split-every functions.

Provided Methods§

source

fn split_every_n_of_str<'a>(&'a self, pat: &'a str, n: usize) -> SplitEvery<'a>

This splits a string every n times a string is found. This splits exclusively. The string must be utf8-encoded.

source

fn split_every_n_of_char(&self, pat: char, n: usize) -> SplitEvery<'_>

This splits a string every n times a char is found. This splits exclusively. The string must be utf8-encoded.

Implementors§