Enum SearchStep
pub enum SearchStep
Result of calling [Searcher::next()] or [ReverseSearcher::next_back()].
Variants
-
Match(usize, usize) Expresses that a match of the pattern has been found at
haystack[a..b].-
Reject(usize, usize) Expresses that
haystack[a..b]has been rejected as a possible match of the pattern.Note that there might be more than one
Rejectbetween twoMatches, there is no requirement for them to be combined into one.-
Done Expresses that every byte of the haystack has been visited, ending the iteration.
Trait Implementations
impl Clone for SearchStep
fn clone(&self) -> SearchStep
impl Copy for SearchStep
impl Debug for SearchStep
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for SearchStep
fn assert_fields_are_eq(&self)
impl PartialEq for SearchStep
fn eq(&self, other: &SearchStep) -> bool
impl StructuralPartialEq for SearchStep
impl TrivialClone for SearchStep
Auto Trait Implementations
impl Freeze for SearchStep
impl RefUnwindSafe for SearchStep
impl Send for SearchStep
impl Sync for SearchStep
impl Unpin for SearchStep
impl UnsafeUnpin for SearchStep
impl UnwindSafe for SearchStep
Blanket Implementations
impl<T> Any for SearchStep
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SearchStep
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SearchStep
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for SearchStep
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for SearchStep
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for SearchStep
where
T: Copy + Debug,
impl<T> SizeHint for SearchStep
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for SearchStep
impl<T, U> Into<U> for SearchStep
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 SearchStep
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 SearchStep
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>