[][src]Enum kontroli::Pattern

pub enum Pattern<S> {
    Symb(S, Vec<Pattern<S>>),
    MVar(Miller),
    Joker,
}

Rewrite pattern.

This may be nonlinear; e.g. eq X X is a valid pattern.

Variants

Symb(S, Vec<Pattern<S>>)

matches an application

MVar(Miller)

matches any term, variable may appear multiple times in both left-hand and right-hand sides of rewrite rule

Joker

matches any term

Trait Implementations

impl<S: Clone> Clone for Pattern<S>[src]

impl<S: Display> Display for Pattern<S>[src]

impl<S> From<Application<S, Pattern<S>>> for Pattern<S>[src]

impl<S> TryFrom<Pattern<S>> for Application<S, Pattern<S>>[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<S> RefUnwindSafe for Pattern<S> where
    S: RefUnwindSafe

impl<S> Send for Pattern<S> where
    S: Send

impl<S> Sync for Pattern<S> where
    S: Sync

impl<S> Unpin for Pattern<S> where
    S: Unpin

impl<S> UnwindSafe for Pattern<S> where
    S: UnwindSafe

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.