Enum datafu::errors::MatchError[][src]

pub enum MatchError {
    StackOverflow,
    ValidationError,
    UnsupportedOperation,
    Other,
}

These are errors that may be returned by the matcher when matching a pattern.

Variants

StackOverflow

Returned if the pattern nests too deeply.

ValidationError

Returned if the pattern rejects the input.

UnsupportedOperation

Returned if the pattern attempts an unsupported operation.

In particular, if the PatternTypes doesn’t support get or pairs for a given value, this error will be returned. It can be treated as a ValidationError, or as a bug in the pattern, at the user’s discretion.

Other

Returned if an unspecified non-critical error occurred.

Trait Implementations

impl Clone for MatchError[src]

impl Debug for MatchError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.