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

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

Type(T)Lifetime(L)Const(C)

Trait Implementations

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

type TypeParam = T

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

type LifetimeDef = L

type ConstParam = C

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

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

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

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

Blanket Implementations

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]

type Owned = T

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

type Error = !

🔬 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> BorrowMut for T where
    T: ?Sized
[src]

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

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

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