Enum darling::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, L, C> GenericParamExt for GenericParam<T, L, C>
[src]

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

[src]

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

[src]

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

[src]

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

impl<T> FromGenericParam for GenericParam<T, LifetimeDef, ConstParam> where
    T: FromTypeParam
[src]

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

[src]

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

[src]

This method tests for !=.

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> FromTypeParam for GenericParam<T, LifetimeDef, ConstParam> where
    T: FromTypeParam
[src]

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

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

[src]

Formats the value using the given formatter. Read more

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