Struct std::str::pattern::CharPredicateSearcher
pub struct CharPredicateSearcher<'a, F>(_) where F: FnMut(char) -> bool;
pattern
#27721)API not fully fleshed out and ready to be stabilized
Associated type for <F as Pattern<'a>>::Searcher
.
Trait Implementations
pub fn clone(&self) -> CharPredicateSearcher<'a, F>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the given formatter. Read more
pub fn next_back(&mut self) -> SearchStep
pattern
#27721)API not fully fleshed out and ready to be stabilized
Performs the next search step starting from the back. Read more
pub fn next_match_back(&mut self) -> Option<(usize, usize)>
pattern
#27721)API not fully fleshed out and ready to be stabilized
Finds the next Match
result. See next_back()
. Read more
pub fn next_reject_back(&mut self) -> Option<(usize, usize)>
pattern
#27721)API not fully fleshed out and ready to be stabilized
Finds the next Reject
result. See next_back()
. Read more
pub fn haystack(&self) -> &'a str
pattern
#27721)API not fully fleshed out and ready to be stabilized
Getter for the underlying string to be searched in Read more
pub fn next(&mut self) -> SearchStep
pattern
#27721)API not fully fleshed out and ready to be stabilized
Performs the next search step starting from the front. Read more
pub fn next_match(&mut self) -> Option<(usize, usize)>
pattern
#27721)API not fully fleshed out and ready to be stabilized
pub fn next_reject(&mut self) -> Option<(usize, usize)>
pattern
#27721)API not fully fleshed out and ready to be stabilized
Finds the next Reject
result. See next()
and next_match()
. Read more
Auto Trait Implementations
impl<'a, F> RefUnwindSafe for CharPredicateSearcher<'a, F> where
F: RefUnwindSafe,
impl<'a, F> Send for CharPredicateSearcher<'a, F> where
F: Send,
impl<'a, F> Sync for CharPredicateSearcher<'a, F> where
F: Sync,
impl<'a, F> Unpin for CharPredicateSearcher<'a, F> where
F: Unpin,
impl<'a, F> UnwindSafe for CharPredicateSearcher<'a, F> where
F: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
pub fn from(t: T) -> T
Performs the conversion.
pub fn into(self) -> U
Performs the conversion.
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
#41263)recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
Performs the conversion.
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
Performs the conversion.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/str/pattern/struct.CharPredicateSearcher.html