pub trait IntoSplitExt:
Deref<Target = str>
+ StableDeref
+ Sized {
// Provided methods
fn into_split_whitespace(self) -> IntoSplitWhitespace<Self> ⓘ { ... }
fn into_split_whitespace_map<F, R>(
self,
fun: F,
) -> IntoSplitWhitespaceMap<Self, F> ⓘ
where F: FnMut(&str) -> R { ... }
fn into_split_whitespace_and_then<F, I>(
self,
fun: F,
) -> IntoSplitWhitespaceAndThen<Self, F, I> ⓘ
where F: FnMut(&str) -> I,
I: IntoIterator { ... }
fn into_split_regex(self, regex: Regex) -> IntoSplitRegex<Self> ⓘ { ... }
fn into_split_regex_map<F, R>(
self,
regex: Regex,
fun: F,
) -> IntoSplitRegexMap<Self, F> ⓘ
where F: FnMut(&str) -> R { ... }
fn into_split_regex_and_then<F, I>(
self,
regex: Regex,
fun: F,
) -> IntoSplitRegexAndThen<Self, F, I> ⓘ
where F: FnMut(&str) -> I,
I: IntoIterator { ... }
fn into_split_regex_ref(self, regex: &Regex) -> IntoSplitRegexRef<'_, Self> ⓘ { ... }
fn into_split_regex_ref_map<F, R>(
self,
regex: &Regex,
fun: F,
) -> IntoSplitRegexRefMap<'_, Self, F> ⓘ
where F: FnMut(&str) -> R { ... }
fn into_split_regex_ref_and_then<F, I>(
self,
regex: &Regex,
fun: F,
) -> IntoSplitRegexRefAndThen<'_, Self, F, I> ⓘ
where F: FnMut(&str) -> I,
I: IntoIterator { ... }
}
Expand description
Trait for owning-splitter methods. These methods work on String
,
Box<str>
, Rc<str>
, etc.
Provided Methods§
fn into_split_whitespace(self) -> IntoSplitWhitespace<Self> ⓘ
fn into_split_whitespace_map<F, R>( self, fun: F, ) -> IntoSplitWhitespaceMap<Self, F> ⓘ
fn into_split_whitespace_and_then<F, I>( self, fun: F, ) -> IntoSplitWhitespaceAndThen<Self, F, I> ⓘ
fn into_split_regex(self, regex: Regex) -> IntoSplitRegex<Self> ⓘ
fn into_split_regex_map<F, R>( self, regex: Regex, fun: F, ) -> IntoSplitRegexMap<Self, F> ⓘ
fn into_split_regex_and_then<F, I>( self, regex: Regex, fun: F, ) -> IntoSplitRegexAndThen<Self, F, I> ⓘ
fn into_split_regex_ref(self, regex: &Regex) -> IntoSplitRegexRef<'_, Self> ⓘ
fn into_split_regex_ref_map<F, R>( self, regex: &Regex, fun: F, ) -> IntoSplitRegexRefMap<'_, Self, F> ⓘ
fn into_split_regex_ref_and_then<F, I>( self, regex: &Regex, fun: F, ) -> IntoSplitRegexRefAndThen<'_, Self, F, I> ⓘ
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.