Enum MatchErrorKind

#[non_exhaustive]
pub enum MatchErrorKind

The underlying kind of a MatchError.

This is a non-exhaustive enum. That means new variants may be added in a semver-compatible release.

Variants

InvalidInputAnchored

An error indicating that an anchored search was requested, but from a searcher that was built without anchored support.

InvalidInputUnanchored

An error indicating that an unanchored search was requested, but from a searcher that was built without unanchored support.

UnsupportedStream { got: MatchKind }

An error indicating that a stream search was attempted on an Aho-Corasick automaton with an unsupported MatchKind.

UnsupportedOverlapping { got: MatchKind }

An error indicating that an overlapping search was attempted on an Aho-Corasick automaton with an unsupported MatchKind.

UnsupportedEmpty

An error indicating that the operation requested doesn't support automatons that contain an empty pattern string.

Trait Implementations

impl Clone for MatchErrorKind

fn clone(&self) -> Self

impl Debug for MatchErrorKind

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for MatchErrorKind

impl PartialEq for MatchErrorKind

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for MatchErrorKind

Auto Trait Implementations

impl Freeze for MatchErrorKind

impl RefUnwindSafe for MatchErrorKind

impl Send for MatchErrorKind

impl Sync for MatchErrorKind

impl Unpin for MatchErrorKind

impl UnsafeUnpin for MatchErrorKind

impl UnwindSafe for MatchErrorKind

Blanket Implementations

impl<T> Any for MatchErrorKind where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for MatchErrorKind where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for MatchErrorKind where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for MatchErrorKind where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for MatchErrorKind

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for MatchErrorKind where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for MatchErrorKind where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for MatchErrorKind where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for MatchErrorKind where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>