pub struct StrSearcher<'a, 'b> { /* private fields */ }๐ฌThis is a nightly-only experimental API. (
pattern #27721)Expand description
Associated type for <&str as Pattern>::Searcher<'a>.
Trait Implementationsยง
Sourceยงimpl<'a, 'b> Clone for StrSearcher<'a, 'b>
impl<'a, 'b> Clone for StrSearcher<'a, 'b>
Sourceยงfn clone(&self) -> StrSearcher<'a, 'b>
fn clone(&self) -> StrSearcher<'a, 'b>
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl<'a, 'b> Debug for StrSearcher<'a, 'b>
impl<'a, 'b> Debug for StrSearcher<'a, 'b>
Sourceยงimpl<'a, 'b> ReverseSearcher<'a> for StrSearcher<'a, 'b>
impl<'a, 'b> ReverseSearcher<'a> for StrSearcher<'a, 'b>
Sourceยงfn next_back(&mut self) -> SearchStep
fn next_back(&mut self) -> SearchStep
๐ฌThis is a nightly-only experimental API. (
pattern #27721)Performs the next search step starting from the back. Read more
Sourceยงfn next_match_back(&mut self) -> Option<(usize, usize)>
fn next_match_back(&mut self) -> Option<(usize, usize)>
๐ฌThis is a nightly-only experimental API. (
pattern #27721)Finds the next
Match result.
See next_back().Sourceยงfn next_reject_back(&mut self) -> Option<(usize, usize)>
fn next_reject_back(&mut self) -> Option<(usize, usize)>
๐ฌThis is a nightly-only experimental API. (
pattern #27721)Finds the next
Reject result.
See next_back().Sourceยงimpl<'a, 'b> Searcher<'a> for StrSearcher<'a, 'b>
impl<'a, 'b> Searcher<'a> for StrSearcher<'a, 'b>
Sourceยงfn haystack(&self) -> &'a str
fn haystack(&self) -> &'a str
๐ฌThis is a nightly-only experimental API. (
pattern #27721)Getter for the underlying string to be searched in Read more
Sourceยงfn next(&mut self) -> SearchStep
fn next(&mut self) -> SearchStep
๐ฌThis is a nightly-only experimental API. (
pattern #27721)Performs the next search step starting from the front. Read more
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ยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more