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