[][src]Enum syn::WherePredicate

pub enum WherePredicate {
    Type(PredicateType),
    Lifetime(PredicateLifetime),
    Eq(PredicateEq),
}

A single predicate in a where clause: T: Deserialize<'de>.

This type is available if Syn is built with the "derive" or "full" feature.

Syntax tree enum

This type is a syntax tree enum.

Variants

A type predicate in a where clause: for<'c> Foo<'c>: Trait<'c>.

This type is available if Syn is built with the "derive" or "full" feature.

A lifetime predicate in a where clause: 'a: 'b + 'c.

This type is available if Syn is built with the "derive" or "full" feature.

An equality predicate in a where clause (unsupported).

This type is available if Syn is built with the "derive" or "full" feature.

Trait Implementations

impl Parse for WherePredicate
[src]

impl PartialEq<WherePredicate> for WherePredicate
[src]

impl Clone for WherePredicate
[src]

Performs copy-assignment from source. Read more

impl From<PredicateType> for WherePredicate
[src]

impl From<PredicateLifetime> for WherePredicate
[src]

impl From<PredicateEq> for WherePredicate
[src]

impl Eq for WherePredicate
[src]

impl Hash for WherePredicate
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for WherePredicate
[src]

impl ToTokens for WherePredicate
[src]

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

impl !Send for WherePredicate

impl !Sync for WherePredicate

Blanket Implementations

impl<T> Spanned for T where
    T: ToTokens
[src]

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.