[][src]Enum sophia_term::matcher::AnyOrExactly

pub enum AnyOrExactly<T> {
    Any,
    Exactly(T),
}

A matcher matching either any term, or only a specific owned term.

Variants

Any

Match any term.

Exactly(T)

Match only this term.

Trait Implementations

impl<T> From<Option<T>> for AnyOrExactly<T> where
    T: TTerm
[src]

impl<U> GraphNameMatcher for AnyOrExactly<Option<U>> where
    U: TTerm
[src]

type Term = U

Type of TTerm used internally by this matcher.

impl<U> TermMatcher for AnyOrExactly<U> where
    U: TTerm
[src]

type Term = U

Type of TTerm used internally by this matcher.

Auto Trait Implementations

impl<T> RefUnwindSafe for AnyOrExactly<T> where
    T: RefUnwindSafe

impl<T> Send for AnyOrExactly<T> where
    T: Send

impl<T> Sync for AnyOrExactly<T> where
    T: Sync

impl<T> Unpin for AnyOrExactly<T> where
    T: Unpin

impl<T> UnwindSafe for AnyOrExactly<T> where
    T: 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<U> TermMatcher for U where
    U: TTerm + ?Sized
[src]

type Term = U

Type of TTerm used internally by this matcher.

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.