Enum darling_core::ast::GenericParam[][src]

pub enum GenericParam<T = TypeParam, L = LifetimeDef, C = ConstParam> {
    Type(T),
    Lifetime(L),
    Const(C),
}

A mirror of syn::GenericParam which is generic over all its contents.

Variants

Trait Implementations

impl<T: Debug, L: Debug, C: Debug> Debug for GenericParam<T, L, C>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone, L: Clone, C: Clone> Clone for GenericParam<T, L, C>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq, L: PartialEq, C: PartialEq> PartialEq for GenericParam<T, L, C>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq, L: Eq, C: Eq> Eq for GenericParam<T, L, C>
[src]

impl<T: FromTypeParam> FromTypeParam for GenericParam<T>
[src]

impl<T: FromTypeParam> FromGenericParam for GenericParam<T>
[src]

impl<T, L, C> GenericParamExt for GenericParam<T, L, C>
[src]

The type this GenericParam uses to represent type params and their bounds

If this GenericParam is a type param, get the underlying value.

If this GenericParam is a lifetime, get the underlying value.

If this GenericParam is a const param, get the underlying value.

Auto Trait Implementations

impl<T, L, C> Send for GenericParam<T, L, C> where
    C: Send,
    L: Send,
    T: Send

impl<T, L, C> Sync for GenericParam<T, L, C> where
    C: Sync,
    L: Sync,
    T: Sync