Struct StrSearcher
pub struct StrSearcher<'a, 'b> { pub(in ::str::pattern) haystack: &'a str, pub(in ::str::pattern) needle: &'b str, pub(in ::str::pattern) searcher: StrSearcherImpl }
Associated type for <&str as Pattern>::Searcher<'a>.
Fields
haystack: &'a strneedle: &'b strsearcher: StrSearcherImpl
Implementations
impl<'a, 'b> StrSearcher<'a, 'b>
fn new(haystack: &'a str, needle: &'b str) -> StrSearcher<'a, 'b>
Trait Implementations
impl<'a, 'b> Clone for StrSearcher<'a, 'b>
fn clone(&self) -> StrSearcher<'a, 'b>
impl<'a, 'b> Debug for StrSearcher<'a, 'b>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a, 'b> ReverseSearcher<'a> for StrSearcher<'a, 'b>
fn next_back(&mut self) -> SearchStepfn next_match_back(&mut self) -> Option<(usize, usize)>
impl<'a, 'b> Searcher<'a> for StrSearcher<'a, 'b>
fn haystack(&self) -> &'a strfn next(&mut self) -> SearchStepfn next_match(&mut self) -> Option<(usize, usize)>
Auto Trait Implementations
impl<'a, 'b> Freeze for StrSearcher<'a, 'b>
impl<'a, 'b> RefUnwindSafe for StrSearcher<'a, 'b>
impl<'a, 'b> Send for StrSearcher<'a, 'b>
impl<'a, 'b> Sync for StrSearcher<'a, 'b>
impl<'a, 'b> Unpin for StrSearcher<'a, 'b>
impl<'a, 'b> UnsafeUnpin for StrSearcher<'a, 'b>
impl<'a, 'b> UnwindSafe for StrSearcher<'a, 'b>
Blanket Implementations
impl<T> Any for StrSearcher<'a, 'b>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for StrSearcher<'a, 'b>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for StrSearcher<'a, 'b>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for StrSearcher<'a, 'b>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for StrSearcher<'a, 'b>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for StrSearcher<'a, 'b>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for StrSearcher<'a, 'b>
impl<T, U> Into<U> for StrSearcher<'a, 'b>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for StrSearcher<'a, 'b>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for StrSearcher<'a, 'b>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>