[][src]Enum sophia_term::matcher::AnyOrExactlyRef

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

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

Variants

Any

Match any term.

Exactly(T)

Match only this term.

Trait Implementations

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

impl<'a, U> GraphNameMatcher for AnyOrExactlyRef<Option<&'a U>> where
    U: TTerm + ?Sized
[src]

type Term = U

Type of TTerm used internally by this matcher.

impl<'a, U> TermMatcher for AnyOrExactlyRef<&'a U> where
    U: TTerm + ?Sized
[src]

type Term = U

Type of TTerm used internally by this matcher.

Auto Trait Implementations

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

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

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

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

impl<T> UnwindSafe for AnyOrExactlyRef<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.