pub struct CharPredicateSearcher<'a, F>(/* private fields */)
where
F: FnMut(char) -> bool;
pattern #27721)
Associated type for <F as Pattern>::Searcher<'a>.
impl<'a, F> Clone for CharPredicateSearcher<'a, F>where
F: Clone + FnMut(char) -> bool,fn clone(&self) -> CharPredicateSearcher<'a, F>
fn clone_from(&mut self, source: &Self)
source. Read more
impl<F> Debug for CharPredicateSearcher<'_, F>where
F: FnMut(char) -> bool,fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<'a, F> ReverseSearcher<'a> for CharPredicateSearcher<'a, F>where
F: FnMut(char) -> bool,fn next_back(&mut self) -> SearchStep
pattern #27721)
fn next_match_back(&mut self) -> Option<(usize, usize)>
pattern #27721)
Match result. See next_back().fn next_reject_back(&mut self) -> Option<(usize, usize)>
pattern #27721)
Reject result. See next_back().impl<'a, F> Searcher<'a> for CharPredicateSearcher<'a, F>where
F: FnMut(char) -> bool,fn haystack(&self) -> &'a str
pattern #27721)
fn next(&mut self) -> SearchStep
pattern #27721)
fn next_match(&mut self) -> Option<(usize, usize)>
pattern #27721)
fn next_reject(&mut self) -> Option<(usize, usize)>
pattern #27721)
impl<'a, F> DoubleEndedSearcher<'a> for CharPredicateSearcher<'a, F>where
F: FnMut(char) -> bool,impl<'a, F> Freeze for CharPredicateSearcher<'a, F>where
F: Freeze,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,impl<T> Any for Twhere
T: 'static + ?Sized,impl<T> Borrow<T> for Twhere
T: ?Sized,impl<T> BorrowMut<T> for Twhere
T: ?Sized,impl<T> CloneToUninit for Twhere
T: Clone,unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit #126799)
impl<T> From<T> for T
fn from(t: T) -> T
Returns the argument unchanged.
impl<T, U> Into<U> for Twhere
U: From<T>,fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
impl<T> ToOwned for Twhere
T: Clone,type Owned = T
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
© 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