Struct std::str::pattern::CharSearcher
pub struct CharSearcher<'a> { /* fields omitted */ }
pattern
#27721)API not fully fleshed out and ready to be stabilized
Associated type for <char as Pattern<'a>>::Searcher
.
Trait Implementations
impl<'a> Clone for CharSearcher<'a>
pub fn clone(&self) -> CharSearcher<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a> Debug for CharSearcher<'a>
pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a> ReverseSearcher<'a> for CharSearcher<'a>
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
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
impl<'a> Searcher<'a> for CharSearcher<'a>
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
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
impl<'a> DoubleEndedSearcher<'a> for CharSearcher<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CharSearcher<'a>
impl<'a> Send for CharSearcher<'a>
impl<'a> Sync for CharSearcher<'a>
impl<'a> Unpin for CharSearcher<'a>
impl<'a> UnwindSafe for CharSearcher<'a>
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.CharSearcher.html